help commands
#5

Quote:
Originally Posted by RyderX
Посмотреть сообщение
Something like that:

PHP код:
CMD:setcolor(playeridparams[])
{
   new 
id;
   new 
color;
   new 
string[128];
   new 
tname[MAX_PLAYER_NAME];
   
GetPlayerName(id,tname,sizeof(tname));
   if(
sscanf(params,"is[128]",id,color)) return SendClientMessage(playerid, -1"/setcolor [id] [color]");
   if(
IsPlayerConnected(id)) return SendClientMessage(playerid, -1"Player isn't connected");
   if(
color || color 99999999) return SendClientMessage(playerid, -1,"invalid color!");
   
SetPlayerColor(idcolor);
   
format(stringsizeof(string),"You have changed %s's Color to %d",tname,color);
   
SendClientMessage(playerid, -1string);
   return 
1;

Код HTML:
if(!IsPlayerConnected(playerid))
Reply


Messages In This Thread
help commands - by Langky - 14.03.2017, 19:08
Re: help commands - by Toroi - 14.03.2017, 19:11
Re: help commands - by Langky - 14.03.2017, 19:13
Re: help commands - by RyderX - 14.03.2017, 19:25
Re: help commands - by BlackbirdXd - 14.03.2017, 19:31

Forum Jump:


Users browsing this thread: 1 Guest(s)