[Help]Give player car
#2

pawn Код:
CMD:givecar(playerid, params[])
{
   new vid, Float:X, Float:Y, Float:Z, Float:Angle, targetid;
   if(sscanf(params,"d", targetid, vid)) return SendClientMessage(playerid, 0x9C9C9CAA,"Syntax: /car [playerid] [vehicleid]");
   if(vid < 400 || vid > 611) return SendClientMessage(playerid,0xFF0000AA,"Invalid Vehicle ID (400 - 611)");
   GetPlayerPos(targetid, X, Y, Z);
   GetPlayerFacingAngle(targetid, Angle);
   PutPlayerInVehicle(targetid, CreateVehicle(vid, X, Y, Z, Angle, 0, 1, 60), 0);
   return 1;
}
Reply


Messages In This Thread
[Help]Give player car - by mzazon - 26.02.2014, 14:17
Re: [Help]Give player car - by ReD_HunTeR - 26.02.2014, 15:43
Re: [Help]Give player car - by mzazon - 26.02.2014, 19:50
Re: [Help]Give player car - by Blademaster680 - 26.02.2014, 20:07
Re: [Help]Give player car - by mzazon - 26.02.2014, 20:38

Forum Jump:


Users browsing this thread: 1 Guest(s)