21.12.2009, 22:41
Hi everyone , Sorry to bother you again but this time yet i have another request!
I was making a piece of script for my GM.
It works good except for a few pieces....
i have this:
As you can see, this makes an admin invincible for at least 60 seconds!
1: Now my request, if an admin uses this command it can repeadly use it and it wil be invurnable for ever, as i don't want this, i would like to have a timer that makes it so that you can use this command again only after 120 seconds!
I've tried this on my own but i cant do it and i also searched the forum but with no results i can use
If someone could write this i would appreciate it!
2: If an admin uses this command, i would like it if every player an a range of 50 could freeze for like 10 seconds.
Well i tried that too but id didnt work either
So if someone could help me out here i'd be happy to see ;P
PS: if the freezing could be an explosion too, that could blow everyone away in a range of 50, sort of protection :P
I was making a piece of script for my GM.
It works good except for a few pieces....
i have this:
Quote:
if (strcmp(cmd, "/Udst!2", true) ==0 ) { if(PlayerInfo[playerid][pAdmin] >= 1337) { SetPlayerHealth(playerid,100000000); if(IsPlayerInAnyVehicle(playerid)) SetVehicleHealth(GetPlayerVehicleID(playerid),1000 000000); SendClientMessage(playerid, COLOR_YELLOW, "You are in godmode for 60 seconds!"); SetTimer("Stopgod", 60000, 0); } else { SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !"); } } |
1: Now my request, if an admin uses this command it can repeadly use it and it wil be invurnable for ever, as i don't want this, i would like to have a timer that makes it so that you can use this command again only after 120 seconds!
I've tried this on my own but i cant do it and i also searched the forum but with no results i can use
If someone could write this i would appreciate it!
2: If an admin uses this command, i would like it if every player an a range of 50 could freeze for like 10 seconds.
Well i tried that too but id didnt work either
So if someone could help me out here i'd be happy to see ;P
PS: if the freezing could be an explosion too, that could blow everyone away in a range of 50, sort of protection :P