[Tutorial] [TUT]God Command with godcar.
#1

Removed.
Reply
#2

Where is the God timer ?
Reply
#3

Oops, sorry, I've added that check the post
Reply
#4

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;
}
Reply
#5

Nice beginning
Reply
#6

Thanks guys
Reply
#7

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

anyone could use itЇ_Ї

w/e nice tut
Reply
#8

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.
Reply
#9

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.
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)