HELP HELP THIS IS SIMPLE
#1

Quote:

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/god", cmdtext, true, 10) == 0)
{
if(IsPlayerAdmin)
{
SendClientMessage(i, ADMIN_COL," /GOd [on][off]");
}
else
{
SendClientMessage(i, RED," You are not Permited to join that command");
}
return 1;
}
return 0;
}

Please need help with that
Reply
#2

and where do you need help with now?...
btw.. work on your indentation..
and btw:
if (strcmp("/god", cmdtext, true, 4) == 0)
instead of
if (strcmp("/god", cmdtext, true, 10) == 0)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)