public ScheduledRespawn(){
new bool:unwanted[CAR_AMOUNT];
for(new i=0; i<MAX_PLAYERS; i++)
{
SendClientMessage(i,COLOR_YELLOW,"• Toate masinile au fost respawnate ! •");
for(new player=0; player<MAX_PLAYERS; player++)
{
if(IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; }
}
for(new car = 1; car <= 400; car++)
{
if(!unwanted[car]) SetVehicleToRespawn(car);
}
}
}
"• Toate masinile au fost respawnate ! •
for(new i=0; i<MAX_PLAYERS; i++)
{
SendClientMessage(i,COLOR_YELLOW,"• Toate masinile au fost respawnate ! •");
pawn Код:
Place it outside the loop. |
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, YELLOW, "• In 20 secunde toate masinile se vor respawna ! •");
SetTimer("ScheduledRespawn",20000,false);
}
}
}
for(new i=0; i<MAX_PLAYERS; i++)
{
SendClientMessage( i, YELLOW, "• In 20 secunde toate masinile se vor respawna ! •");
SetTimer("ScheduledRespawn",20000,false);
}
for(new i=0; i<MAX_PLAYERS; i++)
{
SendClientMessage( i, YELLOW, "• In 20 secunde toate masinile se vor respawna ! •");
}
SetTimer("ScheduledRespawn",20000,false);
i need help this spams the chat!
PHP код:
PHP код:
|
for(new i=0; i<MAX_PLAYERS; i++)
{
SendClientMessage(i,COLOR_YELLOW,"• Toate masinile au fost respawnate ! •");
for(new player=0; player<MAX_PLAYERS; player++)
{
if(IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; }
}
if(dialogid == 53)
{
if(response)
{
ShowPlayerDialog(playerid,53,DIALOG_STYLE_INPUT,"Scrieti Adresa Ta Yahoo!"," ","Ok","");
return 0;
}
RegistrationStep[playerid] = 0;
TutTime[playerid] = 1;
OnPlayerUpdateEx(playerid);
}
pawn Код:
change to pawn Код:
|