16.07.2011, 01:30
pawn Код:
if(!strcmp(cmd,"/respawncarconce",true))
{
for(new i, k; i = MAX_VEHICLES; i < k; ++i)
{
if(ConcessionariaCar[i]) SetVehicleToRespawn(i);
}
return 0x01;
}
pawn Код:
if(!IsPlayerAdmin(playerid)) //eh se o player NГO for um admin na rcon neh?
ex:
pawn Код:
if(IsPlayerAdmin(playerid) == 0) //mesmo que
if(!IsPlayerAdmin(playerid)
if(IsPlayerAdmin(playerid)) // mesmo que
if(IsPlayerAdmin(playerid) == 1)
Setar gangue:
pawn Код:
if(!strcmp(cmd, "/setargang", true))
{
tmp = strtok(cmdtext, idx); if(!strlen(tmp)) return SendClientMessage(playerid, -1, "/setargang [ID] [GangID]");
new id = strval(tmp);
tmp = strtok(cmdtext, idx); if(!strlen(tmp)) return SendClientMessage(playerid, -1, "/setargang [ID] [GangID]");
new gangid = strval(tmp);
//resto
return 1;
}