Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (strcmp(cmd, "/taketest", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if (IsPlayerInRangeOfPoint(playerid, 2.0, 358.2374,161.3243,1008.3828))
- {
- if(OnPassportTest[playerid] == 0)
- {
- if(PlayerInfo[playerid][pPassport] == 0)
- {
- if(PlayerInfo[playerid][pPassportTime] == 0)
- {
- ClearChatbox(playerid, 10);
- TestStep[playerid] = 1;
- SendClientMessage(playerid, COLOR_YELLOW,"1 - What does 'Roleplay' Stands for?");
- ClearChatbox(playerid, 4);
- SendClientMessage(playerid, COLOR_YELLOW,"a. The Place where i can kill everyone with my car");
- SendClientMessage(playerid, COLOR_YELLOW,"b. The place where i can hack money and give it away.");
- SendClientMessage(playerid, COLOR_YELLOW,"c. The place where i must act like i was in real life.");
- SendClientMessage(playerid, COLOR_YELLOW,"d. The place where i must take a gun and kill everyone.");
- SendClientMessage(playerid, COLOR_YELLOW,"e. The place where i must annoy others for admin status.");
- OnPassportTest[playerid] = 1;
- GameTextForPlayer(playerid, "~w~Type ~y~/canceltest ~w~if you wish to finish the test ~g~(No Fees)",10000,4);
- new y, m, d;
- new h,mi,s;
- getdate(y,m,d);
- gettime(h,mi,s);
- format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s [CMD] -> /taketest",d,m,y,h,mi,s,sendername);
- CommandLog(string);
- }
- else
- {
- format(string, sizeof(string),"* You still have to wait %d minutes to re-do the test...",(PlayerInfo[playerid][pPassportTime] / 60))
- SendClientMessage(playerid, COLOR_GRAD1, string);
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "* You have a passport already...");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "* You are not in the city hall!");
- return 1;
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement