Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Your enums:
- enum PlayerData
- {
- VIPRANK,
- };
- new pInfo[MAX_PLAYERS][PlayerData];//defining enum with pinfo
- CMD:setvip(playerid, params[])//your command
- {
- if(IsPlayerAdmin(playerid))//checking if you are admin
- {
- new id, viplevel;//making new vars
- if(!sscanf(params, "ui", id, viplevel)//formating the input parameters in the command
- {
- pInfo[id][VIPRANK] = viplevel; //setting the player's VIP Level.
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement