01.06.2010, 18:15
Код:
if(!strcmp(cmdtext,"/carcolor",true,9)==0) { new tmp[24],tmp2[24],Index, color1,color2; if(!IsPlayerInAnyVehicle(playerid) return SendClientMessage(playerid,oxffffffaa,"You mst be in car to use this command"); if(!strlen(tmp) || !strlen(tmp2)) return SendClientMessage(playerid,0xffffffaa,"Usage: /carcolor color1 color2"); tmp=strtok(cmdtext,Index); tmp2=strtok(cmdtext,Index); color1=strval(tmp); color2=strval(tmp2); ChangeVehicleColor(GetPlayerVehicleID(playerid),color1,color2); return 1; }