#1

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)
Reply
#2

What you mean huh?
Please show us Onplayerconnect code
Reply
#3

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

wtf, you have vip system?
Reply
#5

yes...
Reply
#6

PLEASE SHOW US ONPLAYERCONNECT CODE!!!
Reply
#7

there is no vip code there. .. what do you need ..
Reply
#8

I create vip system used setlevel
Reply
#9

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;
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)