Car spawn
#1

How can i do it like when you type a cmd you will spawn a car beside the player?
Reply
#2

pawn Код:
if (strcmp("/car", cmdtext, true, 10) == 0)
    {
        new Float:x,Float:y,Float:z,Float:a;
                GetPlayerPos(playerid,x,y,z);
                GetPlayerFacingAngle(playerid,a);
                CreateVehicle(522,x+1,y,z,a,-1,-1);
        return 1;
    }
Reply
#3

Quote:
Originally Posted by [MM]RoXoR[FS]
Посмотреть сообщение
pawn Код:
if (strcmp("/car", cmdtext, true, 10) == 0)
    {
        new Float:x,Float:y,Float:z,Float:a;
                GetPlayerPos(playerid,x,y,z);
                GetPlayerFacingAngle(playerid,a);
                AddStaticVehicle(522,x+1,y,z,a,-1,-1);
        return 1;
    }
AddStaticVehicle(522,x+1,y,z,a,-1,-1);
?
Shouldnt be this
CreateVehicle?!
Reply
#4

I vote for Create vehicle
Reply
#5

My bad ..
Edited my post
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)