Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (strcmp(cmd, "/check", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 1)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_GRAD1, "{FFFFFF}[{F81414}wZone RPG{FFFFFF}]: /check [playerid/PartOfName]");
- return 1;
- }
- //giveplayerid = strval(tmp);
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- ShowStats(playerid,giveplayerid);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " No Such Player");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You are not an admin");
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement