SA-MP Forums Archive
vip - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: vip (/showthread.php?tid=524559)



vip - d0nTtoucH - 07.07.2014

hi, guys i need vip script that sets a player vip onplayerconnect.. I want the script to check if the player is vip or not and if not set the vip with this check.
if (APlayerData[playerid][VIPLevel] >= 1)


Re: vip - KayJ - 07.07.2014

What you mean huh?
Please show us Onplayerconnect code


Re: vip - d0nTtoucH - 07.07.2014

what code .. I need script which sets vip a player that connects to my server ...


Re: vip - KayJ - 07.07.2014

wtf, you have vip system?


Re: vip - d0nTtoucH - 07.07.2014

yes...


Re: vip - KayJ - 07.07.2014

PLEASE SHOW US ONPLAYERCONNECT CODE!!!


Re: vip - d0nTtoucH - 07.07.2014

there is no vip code there. .. what do you need ..


Re: vip - salman872 - 07.07.2014

I create vip system used setlevel


Re: vip - K9IsGodly - 07.07.2014

Just add this into OnPlayerConnect if you already have a VIP system.

Код:
// Depending on your variables this will change, example of setting someone to VIP with these variables

PlayerInfo[playerid][pVIP] = 1;



Re: vip - Cena44 - 07.07.2014

pawn Код:
public OnPlayerConnect(playerid)
{
      if (APlayerData[playerid][VIPLevel] == 0)
      {
          APlayerData[playerid][VIPLevel] == 1;
      }
      return 1;
}
Or
pawn Код:
public OnPlayerConnect(playerid)
{
      if (APlayerData[playerid][VIPLevel] == 0) return APlayerData[playerid][VIPLevel] == 1;
      return 1;
}
Both work the same way. It will check if the joining player's VIP level is 0(not VIP) and give them level 1.