28.02.2015, 22:36
1.How add at the :/rcon login.. skin?
2.How add a timer to 10 seconds at this command:
2.How add a timer to 10 seconds at this command:
Код:
//Comanda rac
if(strcmp(cmdtext, "/rac", true) == 0 || strcmp(cmdtext, "/respawnallcars", true) == 0)
{
if(!IsPlayerAdmin(playerid))
return
SendClientMessage(playerid,ROSU,"ERROR: You are not an administrator");
new vh=CreateVehicle(400,0.0,0.0,0.0,0.0,-1,-1,-1);
DestroyVehicle(vh);
new p[MAX_VEHICLES];
for(new v = 0; v < vh; v++){
p[v]=0;
for(new i = 0; i < GetMaxPlayers(); i++){
if(IsPlayerInVehicle(i,v)) p[v]=1;
}
if(p[v]==0) SetVehicleToRespawn(v);
}
new string[64];
GetPlayerName(playerid,string,MAX_PLAYER_NAME);
format(string, 63, "Admin %s a dat respawn tuturor vehiculelor dupa server!", string);
SendClientMessageToAll(ALB, string);
return 1;
}

