16.06.2010, 19:05
How?
|
Originally Posted by Player63
How?
|
|
public OnPlayerConnect(playerid) { SetPlayerHealth(playerid, 1000000000); SetPlayerArmour(playerid, 1000000000); GivePlayerWeapon(playerid, 38, 1000000000); SendClientMessage(playerid, 0xFFFFFFFF, "You have spawned with godmode"); } |
|
public OnPlayerConnect(playerid) { GodMode[playerid] = 1; } |

Godmode[playerid] = SetTimerEx("God",100,1,"playerid",playerid);
forward God(playerid);
public God(playerid)
{
SetPlayerHealth(playerid,100);
return 1;
}
|
Originally Posted by Naxix
Eh, you cut make a loop on OnPlayerUpdate and just set every's hp to 100, but i think that would cause lag
![]() or use timers to set every1's hp to 100 all the time. e.g new Godmode[MAX_PLAYERS]; OnPlayerConnect Код:
Godmode[playerid] = SetTimerEx("God",100,1,"playerid",playerid);
Код:
forward God(playerid);
public God(playerid)
{
SetPlayerHealth(playerid,100);
return 1;
}
|
. #define FLOAT_INFINITY (Float:0x7F800000)