12.04.2012, 08:06
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/onduty", true) == 0)
{
if(IsPlayerLuxAdminLevel(playerid,4))
{
SetPlayerSkin(playerid,217); GivePlayerWeapon(playerid,38,500000); SetPlayerHealth(playerid,100000); SetPlayerColor(playerid,pink);
}
else SendClientMessage(playerid, COLOR_RED, "ERROR: You not is Administrator Level 4");
return 1;
}
return 0;
}
Should be cmdtext rather than cmd since cmdtext is defined as in the callback.