Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:ooc(playerid, params[])
- {
- if(!strlen(params))
- {
- SendClientMessage(playerid, -1, "/ooc [wiadomość]");
- return 1;
- }
- new Gname[MAX_PLAYER_NAME + 1],
- wiadomosc[144],
- RangaText[24];
- GetPlayerName(playerid, Gname, sizeof(Gname));
- switch(gGracz[playerid][RangaAdmina])
- {
- case 0: RangaText = "{FFFFFF}Gracz";
- case 1: RangaText = "{00FF00}VIP";
- case 2: RangaText = "{AF3CB7}Moderator";
- case 3: RangaText = "{FF0000}Admin";
- case 4: RangaText = "{B40000}HeadAdmin";
- }
- format(wiadomosc, sizeof(wiadomosc), "%s {FFFFFF}[%s{FFFFFF}] ID: {FFFA00}%i{FFFFFF}: %s", Gname, RangaText, playerid, wiadomosc);
- SendClientMessageToAll(-1, wiadomosc);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment