[Tutorial] Less verbose function-making
#9

And if I can add something to the discussion, this is an example.

It could totally by something like this

PHP Code:

native IsValidVehicle
(vehicleid);
F:respawnVehs()
{
      for(new 
0MAX_VEHICLESi++)
      {
            if(
IsValidVehicle(i)) SetVehicleToRespawn(i);
      }
      return 
SendClientMessageToAll(-1"All the vehicles have been delay respawned by an administrator !");
}
CMD:respawnall(playeridparams[])
{
      if(!
IsNumeric(params)) return SCM(playerid, -1"SYNTAX : /respawnall [Delay (seconds)]");
      new 
time strval(params);
      
SetTimer("respawnVehs"time*1000false);
      return 
1;

Reply


Messages In This Thread
Less verbose function-making - by Snipa - 17.06.2014, 01:37
Re: Less verbose function-making - by Ihateyou - 17.06.2014, 03:38
Re: Less verbose function-making - by Jack_Leslie - 17.06.2014, 08:14
Re: Less verbose function-making - by ]Rafaellos[ - 17.06.2014, 08:47
Re: Less verbose function-making - by Jack_Leslie - 17.06.2014, 11:01
Re: Less verbose function-making - by iZN - 17.06.2014, 11:05
Re: Less verbose function-making - by Snipa - 17.06.2014, 13:47
Re: Less verbose function-making - by Jack_Leslie - 18.06.2014, 03:52
Re : Less verbose function-making - by S4t3K - 18.06.2014, 09:52

Forum Jump:


Users browsing this thread: 2 Guest(s)