/changecolor command
#2

i had made myself a /color command you can edit it to what you want its 100% working
if you want it to be admin only you can reqeust it

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  
       new vehicleid = GetPlayerVehicleID(playerid);
 
	new cmd[128], idx;
	cmd = strtok(cmdtext, idx);


	if(strcmp(cmd, "/color", true) == 0 || strcmp(cmd, "/colour", true) == 0)
	{
  	new color1, color2, tmp[256];
	tmp = strtok(cmdtext, idx);
	if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /color [color1] [color2]");
	color1 = strval(tmp);
	tmp = strtok(cmdtext, idx);
	if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /color [color1] [color2]");
	color2 = strval(tmp);
	ChangeVehicleColor(GetPlayerVehicleID(playerid), color1, color2);
	return 1;
}
return 0;
}
srry for bad english

It can be wrong becouse i got it exported out my script if you got problem say it.

Код:
#define COLOR_RED 0xAA3333AA
At this above your script":P if you use my whole code
Reply


Messages In This Thread
/changecolor command - by Dolph - 23.04.2010, 17:01
Re: /changecolor command - by security - 23.04.2010, 20:39
Re: /changecolor command - by Torran - 23.04.2010, 20:44
Re: /changecolor command - by Dolph - 23.04.2010, 20:54
Re: /changecolor command - by Torran - 23.04.2010, 21:25

Forum Jump:


Users browsing this thread: 1 Guest(s)