How to add player name or id to this.
#3

You will need ZCMD and SSCANF2 for this...
Код:
COMMAND:duty(playerid, params[])
{
	new str[128], pName[MAX_PLAYER_NAME];
	GetPlayerName(playerid, pName, sizeof(pName));
	format(str, sizeof(str), "** Army memeber %s (ID:%d) is now on duty **", pName, playerid);
	SendClientMessageToAll(COLOR_YELLOW, str);
	SetPlayerSkin(playerid,287);
 	GivePlayerWeapon(playerid,23,100);
 	GivePlayerWeapon(playerid,30,1000);
  	SetPlayerColor(playerid,0xFFC7FF);
	return 1;
}
Try to understand about strings, will help you alot!
Reply


Messages In This Thread
How to add player name or id to this. - by Gangster-rocks - 01.06.2012, 09:56
Re: How to add player name or id to this. - by MP2 - 01.06.2012, 09:58
Re: How to add player name or id to this. - by Sandiel - 01.06.2012, 12:05
Respuesta: How to add player name or id to this. - by Chris1337 - 01.06.2012, 14:16
Re: How to add player name or id to this. - by pasha97 - 01.06.2012, 14:18

Forum Jump:


Users browsing this thread: 1 Guest(s)