How to make a Car Color command?
#3

Код:
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;
}

Reply


Messages In This Thread
How to make a Car Color command? - by Toni - 01.06.2010, 18:07
Re: How to make a Car Color command? - by russo666 - 01.06.2010, 18:10
Re: How to make a Car Color command? - by DJDhan - 01.06.2010, 18:15
Re: How to make a Car Color command? - by Toni - 01.06.2010, 18:16
Re: How to make a Car Color command? - by DJDhan - 01.06.2010, 18:18
Re: How to make a Car Color command? - by Toni - 01.06.2010, 18:22
Re: How to make a Car Color command? - by DJDhan - 01.06.2010, 18:25
Re: How to make a Car Color command? - by Toni - 01.06.2010, 18:43
Re: How to make a Car Color command? - by -Rebel Son- - 01.06.2010, 19:31
Re: How to make a Car Color command? - by -Rebel Son- - 01.06.2010, 19:41
Re: How to make a Car Color command? - by Toni - 01.06.2010, 19:46
Re: How to make a Car Color command? - by -Rebel Son- - 01.06.2010, 19:52
Re: How to make a Car Color command? - by Toni - 01.06.2010, 20:08
Re: How to make a Car Color command? - by -Rebel Son- - 01.06.2010, 20:11
Re: How to make a Car Color command? - by HerronInd - 23.02.2011, 13:27
Re: How to make a Car Color command? - by HerronInd - 23.02.2011, 13:29
Re: How to make a Car Color command? - by HerronInd - 23.02.2011, 13:31
Re: How to make a Car Color command? - by HyperZ - 23.02.2011, 13:34
Re: How to make a Car Color command? - by HerronInd - 23.02.2011, 13:42
Re: How to make a Car Color command? - by SA_Claude - 30.08.2011, 03:45

Forum Jump:


Users browsing this thread: 1 Guest(s)