if(strcmp(cmd, "/kitsocio", true) == 0) new location = PlayerInfo[playerid][pLocal]; if(location == 0 || location == 255 || location == 255) { GetPlayerName(playerid, sendername, sizeof(sendername)); if(PlayerInfo[playerid][pSocio]) { format(string, sizeof(string), "* : %s Pegou Seu Kitsocio.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid, 24, 500); GivePlayerWeapon(playerid, 30, 1500); GivePlayerWeapon(playerid, 29, 1000); GivePlayerWeapon(playerid, 4, 1); GivePlayerWeapon(playerid, 34, 500); SendClientMessage(playerid,COLOR_GREEN,"Voce pegou o seu Kitsocio!"); return 1; } }
if(strcmp(cmd, "/kitsocio", true) == 0)
new location = PlayerInfo[playerid][pLocal];
if(location == 0 || location == 255 || location == 255)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
if (PlayerInfo[playerid][pSocio] > 0)
{
format(string, sizeof(string), "* : %s Pegou Seu Kitsocio.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 24, 500);
GivePlayerWeapon(playerid, 30, 1500);
GivePlayerWeapon(playerid, 29, 1000);
GivePlayerWeapon(playerid, 4, 1);
GivePlayerWeapon(playerid, 34, 500);
SendClientMessage(playerid,COLOR_GREEN,"Voce pegou o seu Kitsocio!");
return 1;
}
}
if(strcmp(cmd, "/kitsocio", true) == 0) { GetPlayerName(playerid, sendername, sizeof(sendername)); if(PlayerInfo[playerid][pSocio]) { format(string, sizeof(string), "* : %s Pegou Seu Kitsocio.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid, 24, 500); GivePlayerWeapon(playerid, 30, 1500); GivePlayerWeapon(playerid, 29, 1000); GivePlayerWeapon(playerid, 4, 1); GivePlayerWeapon(playerid, 34, 500); SendClientMessage(playerid,COLOR_GREEN,"Voce pegou o seu Kitsocio!"); return 1; } }
Tenta isso:
Код:
if(strcmp(cmd, "/kitsocio", true) == 0) { GetPlayerName(playerid, sendername, sizeof(sendername)); if(PlayerInfo[playerid][pSocio]) { format(string, sizeof(string), "* : %s Pegou Seu Kitsocio.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid, 24, 500); GivePlayerWeapon(playerid, 30, 1500); GivePlayerWeapon(playerid, 29, 1000); GivePlayerWeapon(playerid, 4, 1); GivePlayerWeapon(playerid, 34, 500); SendClientMessage(playerid,COLOR_GREEN,"Voce pegou o seu Kitsocio!"); return 1; } } |