[AJUDA]Comando Teleport SendMessagetoAll
#2

pawn Код:
if(strcmp(cmdtext, "/ls", true) == 0)
{
 SetPlayerInterior(playerid, 0);
 if(State!=PLAYER_STATE_DRIVER) return SetPlayerPos(playerid,1130.2557,-1456.8792,15.7969);
 else if(IsPlayerInVehicle(playerid, cartype) == 1)
 {
  SetVehiclePos(cartype,1130.2557,-1456.8792,15.7969);
  SetVehicleZAngle(cartype,266.6323);
 }
 else return SetPlayerPos(playerid,1130.2557,-1456.8792,15.7969);
 SendClientMessage(playerid, 0x00C2ECFF,"[EW] Vocк foi para a cidade de Los Santos /ls!");
 new Nome[MAX_PLAYER_NAME];
 GetPlayerName(playerid, Nome, sizeof(Nome));
 format(string, sizeof(string), "[EW] %s foi para /ls", Nome);
 SendClientMessageToAll(0xD5E8A8AA, string);
 PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
 return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)