Respawn
#9

you sure?wow..test it..you tell me stupid stuff..X(

Quote:

public ScheduledRespawn(playerid)
{
if(IsPlayerConnected(playerid))
{
new bool:unwanted[CAR_AMOUNT];
for(new i = 0; i < MAX_PLAYERS; i++)
{
for(new player=0; player<MAX_PLAYERS; player++)
{
if(IsPlayerInAnyVehicle(player))
{
unwanted[GetPlayerVehicleID(player)]=true;
}
for(new car = 1; car <= 359; car++)
{
if(!unwanted[car]) SetVehicleToRespawn(car);
}
SendClientMessage(playerid,COLOR_YELLOW,"• Toate masinile au fost respawnate ! •");
}
}
}
}

Quote:

public SyncTime()
{
new string[64];
new tmphour;
new tmpminute;
new tmpsecond;
gettime(tmphour, tmpminute, tmpsecond);
if ((tmphour > ghour) || (tmphour == 0 && ghour == 23))
{
format(string, sizeof(string), "Este ora Fix Ceasul acuma este: %d:00 Succes incontinuare!",tmphour);
BroadCast(COLOR_WHITE,string);
ghour = tmphour;
PayDay();
if (realtime)
{
SetWorldTime(tmphour);
}
for(new i=0; i<MAX_PLAYERS; i++)
{
SendClientMessage( i, COLOR_YELLOW, "• In 20 secunde toate masinile se vor respawna ! •");
}
SetTimer("ScheduledRespawn",20000,false);
}
}

Reply


Messages In This Thread
Respawn - by Akcent_Voltaj - 21.01.2013, 19:29
Re: Respawn - by azzerking - 21.01.2013, 19:56
Re: Respawn - by Akcent_Voltaj - 21.01.2013, 20:22
Re: Respawn - by azzerking - 21.01.2013, 20:52
Re: Respawn - by Akcent_Voltaj - 21.01.2013, 21:17
Re: Respawn - by azzerking - 21.01.2013, 21:26
Re: Respawn - by Akcent_Voltaj - 21.01.2013, 21:58
Re: Respawn - by arakuta - 21.01.2013, 22:09
Re: Respawn - by Akcent_Voltaj - 21.01.2013, 22:41
Re: Respawn - by Threshold - 21.01.2013, 23:57

Forum Jump:


Users browsing this thread: 3 Guest(s)