new pGod; public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/god", cmdtext, true, 10) == 0) { if(pGod[playerid] == 0) { pGod[playerid] = 1; SetPlayerHealth(playerid,100000); SendClientMessage(playerid, 0xFFFF2AFF,"Godmode ON"); } else { pGod[playerid] = 0; SendClientMessage(playerid, 0xFFFF2AFF,"Godmode OFF"); SetPlayerHealth(playerid, 100); } return 1; } return 0; } |
C:\Documents and Settings\$unny\Desktop\sss.pwn( ![]() C:\Documents and Settings\Linus\Desktop\sss.pwn( ![]() C:\Documents and Settings\Linus\Desktop\sss.pwn( ![]() C:\Documents and Settings\Linus\Desktop\sss.pwn( ![]() C:\Documents and Settings\Linus\Desktop\sss.pwn( ![]() Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |
new pGod;
new pGod[MAX_PLAYERS];