Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Las si sursa aici de unde am gasit asta:
- https://forum.egaming.ro/topic/156032-respinstutorialsampevent-trivia/
- CMD:an(playerid, params[])
- {
- if(IsPlayerConnected(playerid))
- {
- new length = strlen(cmdtext); //28415
- while ((idx < length) && (cmdtext[idx] <= ' ')) //28416
- {
- idx++;
- }
- new offset = idx;
- new result[128];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "Use: /an [raspuns]");
- return 1;
- }
- if(TriviaQ == -1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "Nici un event trivia disponibil");
- return 1;
- }
- if( strcmp(result,Raspuns[TriviaQ],true) == 0 )
- {
- SendClientMessage(playerid, COLOR_WHITE, "Raspuns Bun");
- TriviaQ = -1;
- }
- else
- {
- //Raspuns Gresit
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement