PDA

View Full Version : Script +rep


Tixxt
15/09/2015, 08:12 PM
Hey guys.. I need a script and i cant find it.. I need a filterscript /godmode. That makes it so you cant use your weapon while have no health.

If you can link me one or give me the script i will give mad repp!


Thanks so much. ( i looked evryware so dont think im lazy.. )

saffierr
15/09/2015, 08:16 PM
I didn't quite understand you but here is a simple godmode cmd

CMD:godmode(playerid, params[])
{
SetPlayerHealth(playerid, FLOAT_INFINITY);
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
SendClientMessage(playerid, COLOR_YELLOW, "You have enabled godmode!");
return 1;
}

ZaBraNjeNi
15/09/2015, 08:27 PM
Read here:
- http://forum.sa-mp.com/showthread.php?t=161639

KillerDVX
15/09/2015, 09:55 PM
I didn't quite understand you but here is a simple godmode cmd

CMD:godmode(playerid, params[])
{
SetPlayerHealth(playerid, FLOAT_INFINITY);
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
SendClientMessage(playerid, COLOR_YELLOW, "You have enabled godmode!");
return 1;
}

You forgot to define the "FLOAT_INFINITY". Add at top #FLOAT_INFINITY 999999

saffierr
15/09/2015, 10:00 PM
You forgot to define the "FLOAT_INFINITY". Add at top #FLOAT_INFINITY 999999
Oh yeah, my bad.
and it's
#define FLOAT_INFINITY 999999