Header Ads Widget

Responsive Advertisement

[TUT] - Como Fazer Kit De Armas


1-Abra O Seu Pawno
2-Escreva Assim


if (strcmp("/kit", cmdtext, true, 10) == 0)
{
GivePlayerWeapon(playerid,32,200);

Esta Vendo Ali Encima o 32 e o id da arma e o ,200 e a munição da arma ai você pode escrever tantos give weapon so que cada um com seu id de arma e munição

OBS:
GivePlayerWeapon(playerid,32,900);
GivePlayerWeapon(playerid,31,900);

E Para Confirmar Que Você Comprou O Kit Coloque
SendClientMessage(playerid,"Você Comprou Um Colete");

E Para Não Ficar De Graça Escreva
GivePlayerMoney(playerid,-1000); ai ele vai perde 1000 reais

E Para Dar Um Som no kit coloque
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);

E Quando Finalizar Escreva
Return 1);
}

Se Você Não Entendeu
Vou Dar Pronto

if (strcmp("/kit", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid,"Você Comprou Um Kit
GivePlayerWeapon(playerid,32,999);
GivePlayerWeapon(playerid,31,999);
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
return 1);
}