Help /car
#1

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
Reply
#2

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;
}
Reply
#3

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
Reply
#4

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
Reply
#5

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
Reply
#6

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

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;
}
Reply
#8

[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?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)