Advertisement
Guest User

NPC Dialog

a guest
Dec 7th, 2016
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.66 KB | None | 0 0
  1. public OnPlayerUpdate(playerid)
  2. {
  3.     new Float:xp, Float:yp, Float:zp;
  4.     GetPlayerPos(playerid, xp, yp, zp);
  5.     if(IsPlayerInRangeOfPoint(playerid, 100, 1711.0494,-2494.4407,13.4710) && IsPlayerNPC(playerid) && PilotNPCAntiSpam == 0)
  6.     {
  7.         SendClientMessageToAll(COLOR_WHITE, "[BlueAirlanes]:Avionul cu numarul de zbor 563 a ajuns in Aeroportul LS.");
  8.     }
  9.     else if(IsPlayerInRangeOfPoint(playerid, 100, 1475.0529,1693.3607,10.7284 && IsPlayerNPC(playerid) && PilotNPCAntiSpam == 0)) //Incercam ceva cu variabila asta :)
  10.     {
  11.         SendClientMessageToAll(COLOR_WHITE, "[BlueAirlanes]:Avionul cu numarul de zbor 563 a ajuns in Aeroportul SF.");
  12.         PilotNPCAntiSpam = 1;
  13.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement