22.10.2011, 21:55
Hello my friends,
i have a question when i teleport to /ammu then i am not in my car but my car is too there.
I have Write this :
if(strcmp("/tuning", cmdtext, true) == 0){
new Pveh;
Pveh = GetPlayerVehicleID(playerid);
SetPlayerPos(playerid, 2385.100 ,1033 ,10.800);
SetVehiclePos(Pveh,2385.100 ,1033 ,10.800);
SetPlayerFacingAngle(playerid, 0);
SetVehicleZAngle(Pveh, 0);
SetPlayerInterior(playerid, 0);
LinkVehicleToInterior(Pveh, 0);
SetPlayerVirtualWorld(playerid, 0);
SetVehicleVirtualWorld(Pveh, 0);
SendClientMessage(playerid, 0xFF0000FF, "Tuning Shop");
return 1;
}
i have a question when i teleport to /ammu then i am not in my car but my car is too there.
I have Write this :
if(strcmp("/tuning", cmdtext, true) == 0){
new Pveh;
Pveh = GetPlayerVehicleID(playerid);
SetPlayerPos(playerid, 2385.100 ,1033 ,10.800);
SetVehiclePos(Pveh,2385.100 ,1033 ,10.800);
SetPlayerFacingAngle(playerid, 0);
SetVehicleZAngle(Pveh, 0);
SetPlayerInterior(playerid, 0);
LinkVehicleToInterior(Pveh, 0);
SetPlayerVirtualWorld(playerid, 0);
SetVehicleVirtualWorld(Pveh, 0);
SendClientMessage(playerid, 0xFF0000FF, "Tuning Shop");
return 1;
}