29.05.2010, 15:56
pawn Код:
if (strcmp("/taxi", cmdtext, true, 10) == 0)
{
new State[MAX_PLAYERS];
State[playerid] = GetPlayerState(playerid);
if (IsPlayerInAnyVehicle(playerid) && State[playerid] == PLAYER_STATE_DRIVER)
{
LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
SetPlayerInterior(GetPlayerVehicleID(playerid), 0);
SetVehicleZAngle(GetPlayerVehicleID(playerid),0);
return SetVehiclePos(GetPlayerVehicleID(playerid),-1990.7428,90.9115,27.6799);
}
else
{
SetPlayerPos(playerid,-1990.7428,90.9115,27.6799);
SetPlayerInterior(playerid, 0);
}
return 1;
}