Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:question(playerid, params[])
- {
- if(sscanf(params, "s[128]", mesaj[playerid])) return SendClientMessage(playerid, -1, "Syntax: /question <intrebare>");
- if(Q == 1)
- {
- if(playerVariables[playerid][pLevel] >= 3)
- {
- if(playerVariables[playerid][pQuestionDelay] == 0)
- {
- format(szMessage, sizeof(szMessage), "* (%d) %s: %s", playerid, playerVariables[playerid][pNormalName], mesaj[playerid]);
- SendToGroup(12, COLOR_LIVE, szMessage);
- Question[playerid] = 1;
- format(szMessage, sizeof(szMessage), "Ai trimis intrebarea, asteapta un reporter sa ti-o accepte!");
- SCM(playerid, COLOR_LIVE, szMessage);
- playerVariables[playerid][pQuestionDelay] = 120;
- }
- else
- {
- format(szMessage, sizeof(szMessage), "Ai trimis deja o intrebare, in %d mai poti trimite alta intrebare!", playerVariables[playerid][pQuestionDelay]);
- SCM(playerid, COLOR_LIVE, szMessage);
- Question[playerid] = 0;
- }
- }
- else
- {
- SCM(playerid, COLOR_LIVE, "Pentru a pune o intrebare ai nevoie de level 3!");
- Question[playerid] = 0;
- }
- }
- else
- {
- SCM(playerid, COLOR_LIVE, "Reporterul nu accepta intrebari acum, asteapta pana cand va accepta!");
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement