pawn Code:
if(strcmp(cmd, "/kitsocio", true) == 0)
{
if(PlayerToPoint(40, playerid,-2327.6248,-1632.1316,483.7000) || PlayerToPoint(40, playerid,-2393.5776,-2205.3010,33.2891) || PlayerToPoint(40, playerid,-2400.9810,2217.5979,4.9844))
{
SendClientMessage(playerid,COLOR_YELLOW," Vocк nгo pode usar seu kit no evento!");
return 1;
}
if(PlayerInfo[playerid][pJailed] != 0)
{
SendClientMessage(playerid,COLOR_YELLOW," Vocк nгo pode usar seu kit preso!");
return 1;
}
if(PlayerPaintballing[playerid] != 0)
{
SendClientMessage(playerid,COLOR_YELLOW," Vocк nгo pode usar seu kit no evento!");
return 1;
}
if(!IsADonos(playerid) && admtrampando[playerid] < 0)
{
SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб em modo jogo! (/trabalhar)");
return 1;
}
if (PlayerInfo[playerid][pSocio] >= 1)
{
ResetPlayerWeapons(playerid);
//GivePlayerWeapon(playerid, 46, 1);
GivePlayerWeapon(playerid, 24, 999);
GivePlayerWeapon(playerid, 31, 1999);
GivePlayerWeapon(playerid, 29, 1999);
GivePlayerWeapon(playerid, 25, 1999);
GivePlayerWeapon(playerid, 4, 1);
GivePlayerWeapon(playerid, 40, 1);
GivePlayerWeapon(playerid, 34, 180);
GivePlayerWeapon(playerid, 43, 999);
GivePlayerWeapon(playerid, 39, 30);
GivePlayerWeapon(playerid, 46, 1);
SetPlayerArmour(playerid, 150);
SetPlayerHealth(playerid, 100);
SendClientMessage(playerid,COLOR_GREEN,"Vocк pegou o seu KitSуcio!");
SendClientMessage(playerid,COLOR_LIGHTRED,"Lembre-se,vocк nгo pode estar em batalha! ou levarб carandiru!");
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, 256, "Sуcio: %s Pegou Seu KitSуcio.",name);
ProxDetector(70.0, playerid, string, COLOR_DBLUE,COLOR_DBLUE,COLOR_DBLUE,COLOR_DBLUE,COLOR_DBLUE);
}
return 1;
}