23.04.2012, 11:11
Hi can I use zcmd commands and if (strcmp("/command", cmdtext, true, 10) == 0)
at the same time?
at the same time?
what do you suggest me to use? If zcmd do I need to paste them underneath onplayercommandtext?
like CMD:hello(playerid, params[]) { SendClientMessage(playerid, 0xFA0505FF,"hello"); return 1; } |
what do you suggest me to use? If zcmd do I need to paste them underneath onplayercommandtext?
like CMD:hello(playerid, params[]) { SendClientMessage(playerid, 0xFA0505FF,"hello"); return 1; } |
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/Hello", cmdtext, true, 10) == 0)
{
SendClientMessageToAll(playerid, 0xFA0505FF,"hello");
return 1;
}
return 0;
}
CMD:hello(playerid, params[])
{
if (!IsPlayerAdmin(playerid)) return 0;
SendClientMessageToAll(playerid, 0xFA0505FF,"hello");
return 1;
}