Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(strcmp(cmd, "/adminad", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 8)
- {
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new length = idx;
- new result[72];
- while ((idx < length) && ((idx - offset) < (sizeof(result) -1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_GREY, "Type: (/adminad)vertise [advert text] )";
- return 1;
- }
- TextDrawSetString(Ad, result);
- TextDrawShowForAll(Ad);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement