06.01.2010, 17:54
i just started to script again and i tried to do it bymyself and not to take anything of the internet, but my command is little buggy:
when i remove:
i can use it only as admin with it as admin and normal player, how to change it? i want a message so if you are a player and you do /acp i want a message: "you need to be.." wo can help me? srry for bad english xD
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/acp", cmdtext, true, 10) == 0)
{
IsPlayerAdmin(playerid);
{
ShowMenuForPlayer(AdminMenu,playerid);
return 1;
}
}
else SendClientMessage(playerid, 0xFFFFFFFF, "You need to be admin for this command");
return 0;
}
Код:
else SendClientMessage(playerid, 0xFFFFFFFF, "You need to be admin for this command");

