Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cmd(check, playerid, params[])
- {
- new player;
- if(playerinfo[playerid][Padminlevel] > 0)
- {
- if(!sscanf(params, "u", player))
- {
- if(!IsPlayerLoggedIn(player))
- {
- CreatePlayerNotLoggedInGUI(playerid);
- }
- else
- {
- ShowStats(player, playerid);
- }
- }
- else
- {
- CreateCmdTipGUI(playerid,"/check [Nazwa/ID gracza]");
- }
- }
- else
- {
- CreateNoPermissionGUI(playerid);
- }
- return 1;
- }
- stock IsPlayerLoggedIn(playerid)
- {
- if(playerinfo[playerid][Ploggedin] == 1)
- {
- return 1;
- }
- else
- {
- return 0;
- }
- }
Add Comment
Please, Sign In to add comment