Ae um simples teleporte para a biblioteca que costuma ter nos servidores RPG!!!
[if(strcmp(cmdtext,"/biblioteca",true)==0)
{
new vehicleid = GetPlayerVehicleID(playerid);
new State = GetPlayerState(playerid);
if(IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER)
{
GameTextForPlayer(playerid,"Voce esta na Biblioteca",4000,6);
LinkVehicleToInterior(vehicleid,0);
SetPlayerInterior(playerid,0);
return SetVehiclePos(vehicleid,1080.5388,-1704.9604,13.5469);
}
SetPlayerPos(playerid,1080.5388,-1704.9604,13.5469);
SetPlayerInterior(playerid,0);
GameTextForPlayer(playerid,"Voce esta na Biblioteca",4000,6);
return 1;
}]
[if(strcmp(cmdtext,"/biblioteca",true)==0)
{
new vehicleid = GetPlayerVehicleID(playerid);
new State = GetPlayerState(playerid);
if(IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER)
{
GameTextForPlayer(playerid,"Voce esta na Biblioteca",4000,6);
LinkVehicleToInterior(vehicleid,0);
SetPlayerInterior(playerid,0);
return SetVehiclePos(vehicleid,1080.5388,-1704.9604,13.5469);
}
SetPlayerPos(playerid,1080.5388,-1704.9604,13.5469);
SetPlayerInterior(playerid,0);
GameTextForPlayer(playerid,"Voce esta na Biblioteca",4000,6);
return 1;
}]