It would be high appreciated
#1

Just scripted a cmd /setcolor from a player, but Since I am a beginner, and don't know how to do it exactly as I want, please help me to improve it.

Quote:

CMDetcolor(playerid, params[])
{
if (!IsPlayerAdmin(playerid))
{
SendClientMessage(playerid, -1, "SERVER: Unknown command.");
}
else if (IsPlayerAdmin(playerid))
{
SetPlayerColor(playerid, COLOR_YELLOW);
SendClientMessage(playerid, COLOR_GREEN, "You succesfully changed the player his color.");
}
return 1;
}

The things I want to be added is the following: That the admin can do /setcolor [ID] [COLOR], and it worked for me when I just did /setcolor, but when you just type as a admin/setcolor it should say "USAGE: /Setcolor [ID] [COLOR]
Reply


Messages In This Thread
It would be high appreciated - by saffierr - 16.07.2014, 00:50
Re: It would be high appreciated - by Miguel - 16.07.2014, 01:27
Re: It would be high appreciated - by BlackSirrah239 - 16.07.2014, 01:30
Re: It would be high appreciated - by saffierr - 16.07.2014, 02:33
Re: It would be high appreciated - by amirab - 16.07.2014, 02:43
Re: It would be high appreciated - by Miguel - 16.07.2014, 02:50

Forum Jump:


Users browsing this thread: 2 Guest(s)