Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 2.04 KB | None | 0 0
  1. if (strcmp(cmd, "/taketest", true) == 0)
  2.     {
  3.         if(IsPlayerConnected(playerid))
  4.         {
  5.             if (IsPlayerInRangeOfPoint(playerid, 2.0, 358.2374,161.3243,1008.3828))
  6.             {
  7.                 if(OnPassportTest[playerid] == 0)
  8.                 {
  9.                     if(PlayerInfo[playerid][pPassport] == 0)
  10.                     {
  11.                         if(PlayerInfo[playerid][pPassportTime] == 0)
  12.                         {
  13.                             ClearChatbox(playerid, 10);
  14.                             TestStep[playerid] = 1;
  15.                             SendClientMessage(playerid, COLOR_YELLOW,"1 - What does 'Roleplay' Stands for?");
  16.                             ClearChatbox(playerid, 4);
  17.                             SendClientMessage(playerid, COLOR_YELLOW,"a. The Place where i can kill everyone with my car");
  18.                             SendClientMessage(playerid, COLOR_YELLOW,"b. The place where i can hack money and give it away.");
  19.                             SendClientMessage(playerid, COLOR_YELLOW,"c. The place where i must act like i was in real life.");
  20.                             SendClientMessage(playerid, COLOR_YELLOW,"d. The place where i must take a gun and kill everyone.");
  21.                             SendClientMessage(playerid, COLOR_YELLOW,"e. The place where i must annoy others for admin status.");
  22.                             OnPassportTest[playerid] = 1;
  23.                             GameTextForPlayer(playerid, "~w~Type ~y~/canceltest ~w~if you wish to finish the test ~g~(No Fees)",10000,4);
  24.                             new y, m, d;
  25.                             new h,mi,s;
  26.                             getdate(y,m,d);
  27.                             gettime(h,mi,s);
  28.                             format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s [CMD] -> /taketest",d,m,y,h,mi,s,sendername);
  29.                             CommandLog(string);
  30.                         }
  31.                         else
  32.                         {
  33.                             format(string, sizeof(string),"* You still have to wait %d minutes to re-do the test...",(PlayerInfo[playerid][pPassportTime] / 60))
  34.                             SendClientMessage(playerid, COLOR_GRAD1, string);
  35.                             return 1;
  36.                         }
  37.                     }
  38.                     else
  39.                     {
  40.                         SendClientMessage(playerid, COLOR_GRAD1, "* You have a passport already...");
  41.                         return 1;
  42.                     }
  43.                 }
  44.             }
  45.             else
  46.             {
  47.                 SendClientMessage(playerid, COLOR_GRAD1, "* You are not in the city hall!");
  48.                 return 1;
  49.             }
  50.         }
  51.         return 1;
  52.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement