SA-MP Forums Archive
[Tutorial] [TUT]God Command with godcar. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Tutorials (https://sampforum.blast.hk/forumdisplay.php?fid=70)
+---- Thread: [Tutorial] [TUT]God Command with godcar. (/showthread.php?tid=139806)



[TUT]God Command with godcar. - H0rn - 06.04.2010

Removed.


Re: [TUT]God Command with godcar. - [HiC]TheKiller - 06.04.2010

Where is the God timer ?


Re: [TUT]God Command with godcar. - H0rn - 06.04.2010

Oops, sorry, I've added that check the post


Re: [TUT]God Command with godcar. - [HiC]TheKiller - 06.04.2010

The timer should be

pawn Code:
public AdminGod()
{
  for(new i = 0; i < MAX_PLAYERS; i ++)
  {
    if(God[i] == 1)
    {
      new vid = GetPlayerVehicleID(i);
      SetPlayerHealth(i,10000);
      RepairVehicle(vid);
    }
  }
  return 1;
}



Re: [TUT]God Command with godcar. - [MWR]Blood - 06.04.2010

Nice beginning


Re: [TUT]God Command with godcar. - H0rn - 11.04.2010

Thanks guys


Re: [TUT]God Command with godcar. - pmk1 - 19.05.2010

good but, like that, it doesn't even check if the player is admin xD

anyone could use itЇ_Ї

w/e nice tut


Re: [TUT]God Command with godcar. - Lewwy - 19.05.2010

Just wanted to point out, when you create a variable you don't have to assign it to false like you did here:

pawn Code:
new God[MAX_PLAYERS] = 0;
When a variable is created, it is automatically set to false.


Re: [TUT]God Command with godcar. - [03]Garsino - 19.05.2010

Quote:
Originally Posted by H0rn
Well seeming as Garsino failed at this command I though I would give it a go, considering I'm new at scripting and he's not I lol'd
Offtopic: My command works fine. You should've learnt how to use it, but it's too late now anyway.


Re: [TUT]God Command with godcar. - juice.j - 19.05.2010

This is a very unefficient way of doing it tho'. You are new to scripting, so it's all fine and I don't mean this offending - but declaring it as a tutorial is inappropriate, as it doesn't meet a certain standard to be a guide newbies shall learn from.