Truck Problem
#4

can you help me with this too?i want to respawn each car in the distance o 5 and il thank you

Quote:

if(strcmp(cmd, "/rcevent", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] >= 2)
{
SendClientMessage(playerid,COLOR_WHITE,"Ai respawnat masinile din jurul tau.");
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
if(GetDistanceBetweenPlayers(playerid,i) <5)
{
for(new car = 1; car <= 699; car++)
{
SetVehicleToRespawn(car);
}
}
}
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "You do not have permission to use that command!");
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "You Must be logged in to use this command!");
}
return 1;
}

Reply


Messages In This Thread
Truck Problem - by Akcent_Voltaj - 04.03.2013, 10:27
Re: Truck Problem - by Threshold - 04.03.2013, 10:38
Re: Truck Problem - by Doughty - 04.03.2013, 10:39
Re: Truck Problem - by Akcent_Voltaj - 04.03.2013, 11:08
Re: Truck Problem - by Doughty - 04.03.2013, 11:46
Re: Truck Problem - by Akcent_Voltaj - 04.03.2013, 16:24
Re: Truck Problem - by Akcent_Voltaj - 04.03.2013, 17:33
Re: Truck Problem - by Akcent_Voltaj - 04.03.2013, 17:55
Re: Truck Problem - by ViniBorn - 04.03.2013, 18:20
Re: Truck Problem - by Akcent_Voltaj - 04.03.2013, 19:47

Forum Jump:


Users browsing this thread: 2 Guest(s)