SA-MP Forums Archive
Help /car - 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: Help /car (/showthread.php?tid=177690)



Help /car - Guest3598475934857938411 - 18.09.2010

Can someone help me code a simple /car I tried coppying lux admin sys but failed it gave errors. I want the cmd for a normal players not admins but i want /carr for admins too but i will change the command your gonna give me to /mycar


Re: Help /car - Basicz - 19.09.2010

Maybe /Mycar spawns a infernus?

Code:

pawn Код:
if(strcmp("/Mycar", cmdtext, true, 6) == 0)
{
new Float:X, Float:Y, Float:Z, Float:Angle, Car;
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, Angle);
Car = CreateVehicle(411, X + 3.0, Y, Z + 1.0, Angle, -1, -1, 5000);
PutPlayerInVehicle(playerid, Car, 0);
return 1;
}



Re: Help /car - Guest3598475934857938411 - 19.09.2010

Hmm i did the same as u did but look what i did
:
http://pastebin.com/xD7zch2N
it's with all the cars and it work
BTW if wanna use it please don't say it don't work it's custum made for my server and oh and i made all of these with vb8


Re: Help /car - Kitten - 19.09.2010

Quote:

Hmm i did the same as u did but look what i did
:
http://pastebin.com/xD7zch2N
it's with all the cars and it work
BTW if wanna use it please don't say it don't work it's custum made for my server and oh and i made all of these with vb8

so whats basically wrong in that


Re: Help /car - Guest3598475934857938411 - 19.09.2010

I just managed to get it working that what I was sayin I had to enter every id of the car i want in the program and the name now it's fixed thanks


Re: Help /car - Guest3598475934857938411 - 19.09.2010

Also i'm gonna make a /home function so yeah.... Let's hope I manage to do that!


Re: Help /car - [L3th4l] - 19.09.2010

WOW you actually created a command for every vehicle O.O

NP, i remember doing that on my first 4 days using pawno :P

Btw:

pawn Код:
CMD:car(playerid, params[])
{
    new VID, Float:X, Float:Y, Float:Z;
    if(sscanf(params, "i", VID)) return /* Send error msg */
    /*Check if its valid vehicle, blablabla*/
    GetPlayerPos(playerid, X, Y, Z);
    CreateVehicle(VID, X, Y, Z, -1, -1, 70000);
    return 1;
}



Re: Help /car - Guest3598475934857938411 - 19.09.2010

[L3th4l] does that surprise you that I did a command for every vehicle?



Lol did it myself in 5 mins so i could generate all of them and then save em :P

Id you want the software just reply!

Oh and can u convert it from zcmd to dcmd?