21.12.2011, 18:29
Im trying to make a command where you do /up and it brings the player up 50 feet (or what ever its measured in) but when i try to do SetVehPos(vehid,X, Y , Z+50) it crashes my pawn. Here is the script working. But if ur in a car it just brings you up 50 feet without car.
pawn Код:
iif (strcmp("/up", cmdtext, true, 8 ) == 0)
{
new Float:X, Float:Y, Float:Z;
new vehicleid = GetPlayerVehicleID(playerid);
GetPlayerPos(playerid, X, Y, Z);
SetPlayerPos(playerid,X, Y, Z+50);
SetVehiclePos(vehicleid, X, Y, Z+50);
return 1;
}
return 1;
}