- 0
Ajutor /v park
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
d3aglesoft
Am o problema , acesta e dialogu de la vpark [pawn] if(dialogid==DIALOGVPOSITION)
{
if(response)
{
switch(listitem)
{
case 0:
{
new Float:x,Float:y,Float:z,Float:a;
if(!IsPlayerInAnyVehicle(playerid))
{
GetPlayerPos(playerid,x,y,z);
GetPlayerFacingAngle(playerid,a);
CarInfo[PlayerInfo[playerid][pPcarkey]][cLocationx] = x;
CarInfo[PlayerInfo[playerid][pPcarkey]][cLocationy] = y;
CarInfo[PlayerInfo[playerid][pPcarkey]][cLocationz] = z;
CarInfo[PlayerInfo[playerid][pPcarkey]][cAngle] = a;
}
else
{
GetVehiclePos(vehid,x,y,z);
GetVehicleZAngle(vehid,a);
CarInfo[PlayerInfo[playerid][pPcarkey]][cLocationx] = x;
CarInfo[PlayerInfo[playerid][pPcarkey]][cLocationy] = y;
CarInfo[PlayerInfo[playerid][pPcarkey]][cLocationz] = z;
CarInfo[PlayerInfo[playerid][pPcarkey]][cAngle] = a;
}
format(string, sizeof(string), " [%s]: {3D9AD4}New position saved.",CarInfo[PlayerInfo[playerid][pPcarkey]][cDescription]);
SendClientMessage(playerid, COLOR_YELLOW, string);
OnCarUpdate(); SavePlayerData(playerid);
}
case 1:
{
new Float:x,Float:y,Float:z,Float:a;
if(!IsPlayerInAnyVehicle(playerid))
{
GetPlayerPos(playerid,x,y,z);
GetPlayerFacingAngle(playerid,a);
CarInfo[PlayerInfo[playerid][pPcarkey2]][cLocationx] = x;
CarInfo[PlayerInfo[playerid][pPcarkey2]][cLocationy] = y;
CarInfo[PlayerInfo[playerid][pPcarkey2]][cLocationz] = z;
CarInfo[PlayerInfo[playerid][pPcarkey2]][cAngle] = a;
}
else
{
GetVehiclePos(vehid,x,y,z);
GetVehicleZAngle(vehid,a);
CarInfo[PlayerInfo[playerid][pPcarkey2]][cLocationx] = x;
CarInfo[PlayerInfo[playerid][pPcarkey2]][cLocationy] = y;
CarInfo[PlayerInfo[playerid][pPcarkey2]][cLocationz] = z;
CarInfo[PlayerInfo[playerid][pPcarkey2]][cAngle] = a;
}
format(string, sizeof(string), " [%s]: {3D9AD4}New position saved.",CarInfo[PlayerInfo[playerid][pPcarkey2]][cDescription]);
SendClientMessage(playerid, COLOR_YELLOW, string);
OnCarUpdate(); SavePlayerData(playerid);
}
}
}
}
[/pawn]
Dar trebuie sa se dea rr la server ca sa se respawneze in acel loc , cum fac ca dupa ce dai /v park masina personala sa se spawneze automat acolo
Ceva de genu DestroyVehicle Dupa createvehicle (am incercat dar nu am reusit , multumesc anticipat de ajutor)
7 answers to this question
Recommended Posts