Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Making Command/Function only for VIP Members:
- 1. Add in top of your Script:
- pawn Code:
- #include <ladmin>
- 2. Go to your Command or Function (In Exemple, I used a command):
- pawn Code:
- if(strcmp(cmd, "/healme", true) == 0)
- {
- SetPlayerHealth(playerid, 100);
- return 1;
- }
- 3. Add the function that will check if the Player is Vip:
- pawn Code:
- If(IsPlayerVipMember(playerid))
- It will look like this:
- pawn Code:
- if(strcmp(cmd, "/healme", true) == 0)
- {
- if(IsPlayerVipMember(playerid))
- {
- SetPlayerHealth(playerid, 100);
- }
- else SendClientMessage(playerid, COLOR_WHITE, "ERROR: You not is a Vip Member!");
- return 1;
- }
- 4. Done!
- Making Command/Function only for specified VIP Account (Silver,Gold,Premium):
- 1. Add in top of your Script:
- pawn Code:
- #include <ladmin>
- 2. Go to your Command or Function (In Exemple, I used a command):
- pawn Code:
- if(strcmp(cmd, "/healme", true) == 0)
- {
- SetPlayerHealth(playerid, 100);
- return 1;
- }
- 3. Add the function that will check if the Player is Vip (Specified Type):
- pawn Code:
- If(IsPlayerVipType(playerid,TYPE))
- //Types:
- //1 - Silver Account
- //2 - Gold Account
- //3 - Premium Account
- It will look like this (In Exemple, I used for Only Gold(and Silver) Account:
- pawn Code:
- if(strcmp(cmd, "/healme", true) == 0)
- {
- if(IsPlayerVipType(playerid,2))
- {
- SetPlayerHealth(playerid, 100);
- }
- else SendClientMessage(playerid, COLOR_WHITE, "ERROR: You not is a Silver or Gold Member!");
- return 1;
- }
- 4. Done!
- Make command for only administrators level 4 use:
- pawn Code:
- if (IsPlayerLuxAdm(playerid, 4))
- Exemple:
- pawn Code:
- if(strcmp(cmd, "/help", true) == 0)
- {
- if(IsPlayerLuxAdminLevel(playerid,4))
- {
- //Function Here
- }
- else SendClientMessage(playerid, COLOR_WHITE, "ERROR: You not is Administrator Level 4");
- return 1;
- }
Add Comment
Please, Sign In to add comment