11.03.2010, 15:16
Hello,
I have a problem, and I do not get it resolved
So I tried it here scripts
/towpark => park the vehicle on the tow place
/towfree => How can the player whose car was towed, redeem it again
So now the problem:
/towfree is working very good !
But / towpark goes only by his own car.
I use this Carsystem (I have it installed in my Godfather script, and everything is going perfectly!):
http://forum.sa-mp.com/index.php?topic=78765.0
Here is the command:
The problem should be because:
The [playerid] is it ?
But how can i fix it?
Plz help me !
Thx !
I have a problem, and I do not get it resolved
So I tried it here scripts
/towpark => park the vehicle on the tow place
/towfree => How can the player whose car was towed, redeem it again
So now the problem:
/towfree is working very good !
But / towpark goes only by his own car.
I use this Carsystem (I have it installed in my Godfather script, and everything is going perfectly!):
http://forum.sa-mp.com/index.php?topic=78765.0
Here is the command:
Code:
if(strcmp(cmd,"/towpark",true) == 0) { if(!IsAnOrdnung(playerid)) { SendClientMessage(playerid, COLOR_GRAD3, " Du bist kein Ordnungsamt"); return 1; } if (IsPlayerInVehicle(playerid,Carlist[playerid][Carid])) { GetVehiclePos(Carlist[playerid][Carid],Carlist[playerid][CarPos_x],Carlist[playerid][CarPos_y],Carlist[playerid][CarPos_z]); GetVehicleZAngle(Carlist[playerid][Carid],Carlist[playerid][CarRotate]); Carlist[playerid][TowPark]=1; SendClientMessage(playerid, COLOR_GREEN, "Fahrzeug erfolgreich auf dem Verwahrplatz geparkt !"); } else { SendClientMessage(playerid, COLOR_GREY, "Du bist in keinem Auto !"); } return 1; }
Code:
if (IsPlayerInVehicle(playerid,Carlist[playerid][Carid])) { GetVehiclePos(Carlist[playerid][Carid],Carlist[playerid][CarPos_x],Carlist[playerid][CarPos_y],Carlist[playerid][CarPos_z]); GetVehicleZAngle(Carlist[playerid][Carid],Carlist[playerid][CarRotate]); Carlist[playerid][TowPark]=1;
But how can i fix it?
Plz help me !
Thx !