09.08.2010, 15:19
how can i like put /respawncars? i saw once on luxadmin but iv downloaded some and i cant find it anymore help!!
_______________________
[GDZ]leader
_______________________
[GDZ]leader
//
if(!strcmp(cmdtext, "/respawncar", true))
{
for(new i = 0; i < MAX_VEHICLES; i++)
{
SetVehicleToRespawn(i);
}
return 1;
}
if(strcmp(cmd, "/respawnvehicles", true) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 5)
{
for(new i=0;i<MAX_VEHICLES;i++)
{
if(IsVehicleOccupied(i) == 0)
{
SetVehicleToRespawn(i);
}
}
format(string, sizeof(string), "[INFO:] Unoccupied vehicles respawned by %s.", GetPlayerNameEx(playerid));
SendClientMessageToAll(COLOR_ADMINCMD, string);
}
else
{
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "Your not an administrator.");
}
return 1;
}