17.02.2010, 13:19
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext,"/Rampa",true)==0)
{
new vehicleid = GetPlayerVehicleID(playerid);
new State = GetPlayerState(playerid);
if(IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER)
{
GameTextForPlayer(playerid,"Bem-Vindo(a) a Rampa!",4000,6);
LinkVehicleToInterior(vehicleid,0);
SetPlayerInterior(playerid,0);
return SetVehiclePos(vehicleid,2158.4670410156 1042.2408447266 2267.8205566406);
}
SetPlayerPos(playerid,2158.4670410156 1042.2408447266 2267.8205566406);
SetPlayerInterior(playerid,0);
GameTextForPlayer(playerid,"Bem-Vindo(a) a Rampa!",4000,6);
return 1;
}
return 0;
}