Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include a_samp
- #include zcmd
- #include sscanf2
- #define MySErverPassword "MeIzOmar:)"
- enum info {
- SM,
- };
- new PlayerInfo[MAX_PLAYERS][info];
- CMD:sm(playerid,params[]) {
- new thing[32];
- if(sscanf(params,"s",thing)) return SendClientMessage(playerid, -1,"Usage: /sm [action]");
- if(strcmp(thing,"Login", true) == 0) {
- new password11[50];
- if(sscanf(params,"s",password11)) SendClientMessage(playerid, -1,"Usage: /sm login [password]");
- if(strcmp(password11,MySErverPassword, false) == 0) {
- PlayerInfo[playerid][SM] = 1;
- SendClientMessage(playerid, -1,"SERVER: You've logged in as Server Manager!");
- }
- }
- else return SendClientMessage(playerid, -1,"Invalid Action");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment