SA-MP Forums Archive
German RealLife Car System [HELP] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: German RealLife Car System [HELP] (/showthread.php?tid=272496)



German RealLife Car System [HELP] - brightas - 28.07.2011

Hello everyone , im editing this car system, and i've got problem.I want to make cmd with function PutPlayerInVehice.This command must Put player in buyable Infernus, but i dont know how to make it.


Car Spawning:



pawn Код:
new Buylist[54][ahModel] = {
    {"Infernus",0,411,-1,220000,55000,-1659.9353,1217.6703,13.4783,175.9816},
...........


pawn Код:
new i;
    for(i=0; i  {

        Buylist[i][Carid]=CreateVehicle(Buylist[i][Modelid],Buylist[i][X],Buylist[i][Y],Buylist[i][Z],Buylist[i][Rotation],-1,-1,-1);
    }
    for(i=0; i  {
        Spectating[i][0]=-1;
    }
Mine Script:

pawn Код:
if(!strcmp(text,"infernus",true))
        {
            PlayerOrder[playerid] = "infernus";
            Pardbusy = 1;
           SetPlayerCameraPos(playerid,-1657.6204,1210.5876,15.3158);
            SetPlayerCameraLookAt(playerid,-1658.4584,1218.0245,13.8918);
//here i need function PutPlayerInVehicle , it will put player in buyable infernus
             SetPlayerChatBubble(bot,"John: {FFFFFF}Wait a second...",0xFFFF00DD,35.0,3000);
            SetTimerEx("GetCar",3000,false,"ii",bot,playerid);
        }
    }
P.S Sorry for bad english


Re: German RealLife Car System [HELP] - ScRaT - 28.07.2011

pawn Код:
PutPlayerInVehicle(playerid, Buylist[i][Carid], 0);



Re: German RealLife Car System [HELP] - brightas - 28.07.2011

Quote:
Originally Posted by ScRaT
Посмотреть сообщение
pawn Код:
PutPlayerInVehicle(playerid, Buylist[i][Carid], 0);
Yeah, but how to select Infernus ?


Re: German RealLife Car System [HELP] - brightas - 29.07.2011

bump


Re: German RealLife Car System [HELP] - brightas - 29.07.2011

Quote:
Originally Posted by ScRaT
Посмотреть сообщение
pawn Код:
PutPlayerInVehicle(playerid, Buylist[i][Carid], 0);
With this script, its putting me in random buyable vehicle


Re: German RealLife Car System [HELP] - Rafa - 29.07.2011

lol
pawn Код:
new id = CreateVehicle(411, x, y, z, -1, -1, -1, -1);
PutPlayerInVehicle(playerid, id, 0);