28.10.2015, 18:53
pawn Код:
if(strcmp(cmdtext,"/aerols",true)==0)
{
new vehicleid = GetPlayerVehicleID(playerid);
new State = GetPlayerState(playerid);
new string[128], playername[128];
if(IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER)
{
GameTextForPlayer(playerid,"AEROPORTO DE LOS SANTOS!",4000,6);
LinkVehicleToInterior(vehicleid,0);
SetPlayerInterior(playerid,0);
return SetVehiclePos(vehicleid,2138.3289,-2475.8765,13.5469);
}
SetPlayerPos(playerid,2138.3289,-2475.8765,13.5469);
SetPlayerInterior(playerid,0);
GameTextForPlayer(playerid,"AEROPORTO DE LOS SANTOS!",4000,6);
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "O player %s (%d) se teletransportou para o aeroporto de Los Santos." playername, playerid);
SendClientMessageToAll(-1, string);
return 1;
}
Para enviar uma mensagem global utilize a funзгo SendClientMessageToAll.