SA-MP Forums Archive
<When I go on the the server not loaded my car > URGENT! - 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)
+--- Thread: <When I go on the the server not loaded my car > URGENT! (/showthread.php?tid=431550)



<When I go on the the server not loaded my car > URGENT! - Luca12 - 18.04.2013

so I worked vehicle purchase and everything is fine except when I we go to the server and not the obvious vehicle just me one good all by and I thought everything was fine when we go out and do it again what that is please help, if you I get it. thanks

Sorry for my bad English.


Re: <When I go on the the server not loaded my car > URGENT! - DaTa[X] - 18.04.2013

URGENT! you speak french ??
post here
http://forum.sa-mp.com/forumdisplay.php?f=30


Re: <When I go on the the server not loaded my car > URGENT! - Luca12 - 18.04.2013

I don't speak french


Re: <When I go on the the server not loaded my car > URGENT! - DobbysGamertag - 18.04.2013

Are you saying the vehicle's dont return to the original place? Or are the vehicles owned, but you leave and they aren't owned anymore? is this before or after you restart?


Have you got the correct folder in scriptfiles, or have you got the database set up correctly


Re: <When I go on the the server not loaded my car > URGENT! - Luca12 - 18.04.2013

yes they don't return to the original place they just gone when I back to the server and yes I have correct folder in scriptfiles just once they load corectly but not anymore If you now what I mean. Thx


Re: <When I go on the the server not loaded my car > URGENT! - Luca12 - 19.04.2013

please anyone


Re: <When I go on the the server not loaded my car > URGENT! - DobbysGamertag - 19.04.2013

Do you mean owned cars?
Or server cars?

im having trouble understanding you..


Re: <When I go on the the server not loaded my car > URGENT! - Parker_Daley - 19.04.2013

If it's a roleplay script for Cars like, LSPD -- Write this code into the script

CMD:createpvehicle(playerid, params[])
{
if (PlayerInfo[playerid][pAdmin] < 4)
{
SendClientMessageEx(playerid, COLOR_GREY, " You are not allowed to use this command.");
return 1;
}

new string[128], giveplayerid, modelid, color1, color2;
if(sscanf(params, "uddd", giveplayerid, modelid, color1, color2)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /createpvehicle [playerid] [modelid] [color 1] [color 2]");

if(color1 < 0 || color1 > 126) { SendClientMessageEx(playerid, COLOR_GREY, " Color Number can't be below 0 or above 126 !"); return 1; }
if(color2 < 0 || color2 > 126) { SendClientMessageEx(playerid, COLOR_GREY, " Color Number can't be below 0 or above 126 !"); return 1; }
if(modelid < 400 || modelid > 611) { SendClientMessageEx(playerid, COLOR_GREY, " Vehicle Number can't be below 400 or above 611 !"); return 1; }
new playervehicleid = GetPlayerFreeVehicleId(giveplayerid);
if(playervehicleid == -1) return SendClientMessageEx(playerid, COLOR_GREY, "ERROR: That player can't have more cars.");
new Float:X,Float:Y,Float:Z;
GetPlayerPos(giveplayerid,X,Y,Z);
new Float:Angle;
GetPlayerFacingAngle(giveplayerid,Angle);
new car = CreatePlayerVehicle(giveplayerid, playervehicleid, modelid, X, Y, Z, Angle, color1, color2, 0);
if(car == INVALID_PLAYER_VEHICLE_ID)
{
SendClientMessageEx(playerid, COLOR_GREY, "ERROR: Something went wrong and the car didn't get created.");
}
else
{
format(string, sizeof(string), " Vehicle successfully created with ID %d.", car);
SendClientMessageEx(playerid, COLOR_GRAD1, string);
}

format(string, sizeof(string), "%s has created a %s for %s (Color 1: %d | Color 2: %d).", GetPlayerNameEx(playerid), GetVehicleName(car), GetPlayerNameEx(giveplayerid), color1, color2);
Log("logs/playervehicle.log", string);
return 1;
}



Re: <When I go on the the server not loaded my car > URGENT! - Luca12 - 19.04.2013

yes owned car


Re: <When I go on the the server not loaded my car > URGENT! - Luca12 - 20.04.2013

please help anyone