23.04.2010, 20:39
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
srry for bad english
It can be wrong becouse i got it exported out my script if you got problem say it.
At this above your script":P if you use my whole code

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; }
It can be wrong becouse i got it exported out my script if you got problem say it.
Код:
#define COLOR_RED 0xAA3333AA