29.06.2011, 22:30
nao intendi direito ve se e isso \/
@EDIT
OnPlayerSpawn \/
pawn Код:
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;
}
OnPlayerSpawn \/
pawn Код:
if(TemGang[playerid]!=0)
{
OnPlayerCommandText(playerid,"/gang armas");
}