10.02.2013, 17:33
Tenta esse:
pawn Код:
if(strcmp(cmd, "/kitsocio", true) == 0)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
if(PlayerInfo[playerid][pSocio] == 1)
{
if(PlayerInfo[playerid][pJailed] != 0)
{
SendClientMessage(playerid,COLOR_GREY," Vocк nгo pode usar seu kit preso!");
return true;
}
format(string, sizeof(string), " %s Pegou Seu Kit Sуcio.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
ResetPlayerWeaponsEx(playerid);
GivePlayerWeapon(playerid, 24, 2500);
GivePlayerWeapon(playerid, 31, 2500);
GivePlayerWeapon(playerid, 29, 2500);
GivePlayerWeapon(playerid, 25, 2500);
GivePlayerWeapon(playerid, 4, 1);
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 35, 5);
GivePlayerWeapon(playerid, 34, 2500);
GivePlayerWeapon(playerid, 16, 10);
SetPlayerArmour(playerid, 100);
SetPlayerHealth(playerid, 100);
SendClientMessage(playerid,0x33FF00FF,"Vocк pegou o seu KitSуcio!");
return true;
}
else
{
SendClientMessage(playerid, COLOR_WHITE,"Vocк nгo й Sуcio.");
}
}
}