QUESTION: How can i Add vehicles to my Server
#1

Hi all
I downloaded a Server, Now i want to add some Cars to it..

I really Dont know how to use it,
There is no Pawno in my Server Folder.

Well thanks.
Reply
#2

there has to be a "Pawno" folder in the server package!! now if you want to add cars, follow this tutorial
https://sampwiki.blast.hk/wiki/Debug_Guide

[EDIT]:
although if you are using Linux i think there isnt any, you will have to find some replacement,
i dont use linux so i dont know
Reply
#3

I have a Pawno Folder,
But i Cant add that Saved Positions

[EDIT]:
Isnt there any other way i can add vehicles?
Reply
#4

here's allitle snippet for you:
pawn Код:
if(strcmp(cmdtext, "/savepos", true) == 0)
    {
        new Float:pos[4], string[100], filemode:openmethod = io_append, File:file;
        if(IsPlayerInAnyVehicle(playerid))
        {
          new vehid = GetPlayerVehicleID(playerid);
            GetVehiclePos(vehid,pos[0],pos[1],pos[2]);
            GetVehicleZAngle(vehid,pos[3]);
            format(string,126,"\nAddStaticVehicle(%d,%f,%f,%f,%f,-1,-1); // %s",GetVehicleModel(vehid),pos[0],pos[1],pos[2],pos[3],cmdtext[8]);
        } else {
            GetPlayerPos(playerid,pos[0],pos[1],pos[2]);
            GetPlayerFacingAngle(playerid,pos[3]);
            format(string,126,"\nAddPlayerClass(%d,%f,%f,%f,%f,0,0,0,0,0,0); // %s",GetPlayerSkin(playerid),pos[0],pos[1],pos[2],pos[3],cmdtext[8]);
        }
        if(!fexist("coords.txt")) openmethod = io_write;
        if((file = fopen("coords.txt",openmethod)))
        {
          fwrite(file,string);
          fclose(file);
          SendClientMessage(playerid,0xF6CA00AA,"»Position Succesfully Saved!");
        } else SendClientMessage(playerid,0xF6CA00AA,"»Error! Position Couldn't be Saved!");
        return 1;
    }
Put that under OnPlayerCommandText, and also make a file in your scriptfiles folder called coords.txt
Then when you're ingame get in a car, although you will need a car spawner or somthing to do the job, and type /savepos then it will save to scriptfiles/coords.txt and you can easily put it in server

[ I just want to note that Seif did this little snippet, not me, i just edited it allitle.. ]
Reply
#5

All this anwers sucks he jsut ask for code to add car
AddStaticVehicle(location 93.1689,53,53);
Reply
#6

Quote:
Originally Posted by Oxside
All this anwers sucks he jsut ask for code to add car
AddStaticVehicle(location 93.1689,53,53);
remember the vehicle id

AddStaticVehicle(vehicleid,coordinates,color,color );

vehicles id --> https://sampwiki.blast.hk/wiki/Vehicles:All

and you can get coordinates by going in samp debug and pressing /save when in a vehicle

you can't do NOTHING in your server without pawno.
Reply
#7

Does someone has Teamviewer?

If you do,
Add Rickvanderwel@live.nl on MSN.

Maybe you could Help me then.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)