Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.44 KB | None | 0 0
  1. //Your enums:
  2. enum PlayerData
  3. {
  4.     VIPRANK,
  5. };
  6. new pInfo[MAX_PLAYERS][PlayerData];//defining enum with pinfo
  7.  
  8. CMD:setvip(playerid, params[])//your command
  9. {
  10.     if(IsPlayerAdmin(playerid))//checking if you are admin
  11.     {
  12.         new id, viplevel;//making new vars
  13.         if(!sscanf(params, "ui", id, viplevel)//formating the input parameters in the command
  14.         {
  15.             pInfo[id][VIPRANK] = viplevel; //setting the player's VIP Level.
  16.         }
  17.     }
  18.     return 1;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement