+10 levels
#5

This is for my IntelliNPC:
pawn Код:
if (strfind(text, "Can i get my present?") != -1)
  {
  GetPlayerPos(npcid,x,y,z);
    if(IsPlayerInRangeOfPoint(playerid,10,x,y,z))
    {
    if(IsPlayerFacingPlayer(playerid,npcid,10) == 1)
    {
    if(Presentplayer[playerid] == 0)
    {
    Presentplayer[playerid] = 1;
    GivePlayerMoney(playerid, 10000000);
    PlayerInfo[playerid][pLevel] += 10;
    SetPlayerFacingPlayer(npcid,playerid);
    SetPlayerChatBubble(npcid,"Sure, one moment!",0xFFFFFFAA,50,5000);
    amount[playerid] = 7;
    }
    else
    {
    SetPlayerFacingPlayer(npcid,playerid);
    SetPlayerChatBubble(npcid, "You have already got a present!",0xFFFFFFAA,50,5000);
    }
    }
    }
  }
Reply


Messages In This Thread
+10 levels - by breakpaper - 17.12.2009, 16:57
Re: +10 levels - by Correlli - 17.12.2009, 16:59
Re: +10 levels - by breakpaper - 17.12.2009, 17:05
Re: +10 levels - by Correlli - 17.12.2009, 17:07
Re: +10 levels - by breakpaper - 17.12.2009, 17:08
Re: +10 levels - by breakpaper - 17.12.2009, 18:10

Forum Jump:


Users browsing this thread: 2 Guest(s)