if(!strcmp(wet,"armas")) {
if(TemGang[playerid]==0) return SendClientMessage(playerid,amarelo,"[GANG] Vocк nгo tem gang!");
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 24,500);
GivePlayerWeapon(playerid, 26,600);
GivePlayerWeapon(playerid, 28,3000);
GivePlayerWeapon(playerid, 31,2000);
GivePlayerWeapon(playerid, 34,300);
GivePlayerWeapon(playerid, 16,250);
SendClientMessage(playerid,amarelo,"[INFO] Vocк adquiriu o respawn da gang!");
}
if(strcmp(cmd, "/gang", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(TemGang[playerid]!=0)
{
new x_nr[6];
x_nr = strtok(cmdtext, idx);
if(!strlen(x_nr))
{
SendClientMessage (playerid, COLOR_WHITE, "USE: /gang armas");
return 1;
}
if(strcmp(x_nr,"armas",true) == 0)
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 24,500);
GivePlayerWeapon(playerid, 26,600);
GivePlayerWeapon(playerid, 28,3000);
GivePlayerWeapon(playerid, 31,2000);
GivePlayerWeapon(playerid, 34,300);
GivePlayerWeapon(playerid, 16,250);
SendClientMessage(playerid,amarelo,"[INFO] Vocк adquiriu o respawn da gang!");
}
}
else
{
SendClientMessage(playerid,amarelo,"[GANG] Vocк nгo tem gang!");
return 1;
}
}
return 1;
}
if(TemGang[playerid]!=0)
{
OnPlayerCommandText(playerid,"/gang armas");
}
new bool:SpawnArmas[MAX_PLAYERS];
if (SpawnArmas[playerid] == true)
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 24,500);
GivePlayerWeapon(playerid, 26,600);
GivePlayerWeapon(playerid, 28,3000);
GivePlayerWeapon(playerid, 31,2000);
GivePlayerWeapon(playerid, 34,300);
GivePlayerWeapon(playerid, 16,250);
SendClientMessage(playerid,amarelo,"[INFO] Vocк recebeu o respawn da gang");
}
if(!strcmp(wet,"armas"))
{
if(TemGang[playerid]==0) return SendClientMessage(playerid,amarelo,"[GANG] Vocк nгo tem gang!");
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 24,500);
GivePlayerWeapon(playerid, 26,600);
GivePlayerWeapon(playerid, 28,3000);
GivePlayerWeapon(playerid, 31,2000);
GivePlayerWeapon(playerid, 34,300);
GivePlayerWeapon(playerid, 16,250);
SendClientMessage(playerid,amarelo,"[INFO] Vocк adquiriu o respawn da gang!");
SpawnArmas[playerid] = true;
}
Tenta ai...
No topo: PHP код:
PHP код:
PHP код:
|