08.05.2012, 20:06
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext,"/ps",true)==0)
{
new vehicleid = GetPlayerVehicleID(playerid);
new State = GetPlayerState(playerid);
if(IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER)
{
GameTextForPlayer(playerid,"Concerte seu Carro",4000,6);
LinkVehicleToInterior(vehicleid,0);
SetPlayerInterior(playerid,0);
return SetVehiclePos(vehicleid,2079.0764,-1831.3076,13.382);
}
SetPlayerPos(playerid,2079.0764,-1831.3076,13.382);
SetPlayerInterior(playerid,0);
GameTextForPlayer(playerid,"Concerte seu Carro",4000,6);
return 1;
}
return 0;
}