#1

Can someone be a doll and create a cmd for me that spawns a Pony (id 413), a red one, and the player spawns into the car(not spawn next to the player).

Something like

if(strcmp(cmdtext, "/pony", true) == 0)
Reply
#2

pawn Код:
if(!strcmp("/pony", cmdtext))
{
     new Float:x, Float:y, Float:z, Float:ang, veh;
     GetPlayerPos(playerid, x, y, z);
     GetPlayerFacingAngle(playerid, and);
     veh = CreateVehicle(413, x, y, z, ang, -1, -1, -1);
     PutPlayerInVehicle(playerid, veh, 0); //as driver
     return 1;
}
Reply
#3

pawn Код:
GetPlayerFacingAngle(playerid, and);
pawn Код:
error 017: undefined symbol "and"
Reply
#4

Sorry it was supposed to be ang not and, i'm typing on my phone - sorry!
Reply
#5

Replace with
pawn Код:
GetPlayerFacingAngle(playerid,ang);
Reply
#6

Ahh thank you very much!
Reply
#7

Anytime
Reply
#8

I dont expect it's possible that they will always spawn as red?
Reply
#9

Erm; I can't remember the actual colour code for red, but search vehicle colour codes on the samp wiki. When you have found wthe colour you are after, replace the createvehicle line with
pawn Код:
CreateVehicle(413, x, y, z, ang, COLOURID, COLOURID, -1);
Reply
#10

CreateVehicle(413, x, y, z, ang, COLOR_RED, 0xE60000FF, -1);


like this?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)