public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/CHEATS", cmdtext, true, 10) == 0) { { if(IsPlayerAdmin)) } SendClientMessage(playerid, WHITE,"SERVER: Cheats Activated"); SetPlayerHealth(playerid,1000000000000); SetPlayerArmour(playerid,1000000000000); GivePlayerWeapon(playerid,38,10000000); { else } SendClientMessage(playerid, RED," SERVER YOU ARE NOT ALLOWED TO USE THAT COMMAND"); return 1; } return 0; } |
C:\Users\Daniel\Desktop\SAMP\Server\gamemodes\ccrp .pwn(163) : error 076: syntax error in the expression, or invalid function call C:\Users\Daniel\Desktop\SAMP\Server\gamemodes\ccrp .pwn(163) : error 029: invalid expression, assumed zero C:\Users\Daniel\Desktop\SAMP\Server\gamemodes\ccrp .pwn(170) : error 029: invalid expression, assumed zero Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase |
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/CHEATS", cmdtext, true, 10) == 0)
{
if(IsPlayerAdmin(playerid))
{
SendClientMessage(playerid, WHITE,"SERVER: Cheats Activated");
SetPlayerHealth(playerid,1000000000000);
SetPlayerArmour(playerid,1000000000000);
GivePlayerWeapon(playerid,38,10000000);
}
else
{
SendClientMessage(playerid, RED," SERVER YOU ARE NOT ALLOWED TO USE THAT COMMAND");
}
return 1;
}
return 0;
}
#define GOD_HEALTH 99999
SetPlayerHealth(playerid, GOD_HEALTH);