[pomoc]eventi cp

Započeo BloOm3R!, Septembar 11, 2010, 14:13:53 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

zna li ko koji je problem kod evenata kada napravim sve ukucam komandu da pozovem na pocetak eventa i dodem do cp drugi se ne pojavi gdje je greska


komande stavim pod onplayercommand

Citatif (strcmp(cmd, "/setdrift1", true)==0)
   {
      if(IsPlayerConnected(playerid))
      {
         tmp = strtok(cmdtext, idx);
         if(!strlen(tmp))
         {
            SendClientMessage(playerid, COLOR_GRAD2, "KORISTITE: /setdrift1 [IgracevID/DioImena]");
            return 1;
         }
         giveplayerid = ReturnUser(tmp);
         if (PlayerInfo[playerid][pAdmin] >= 2)
         {
            if(IsPlayerConnected(giveplayerid))
            {
               SetPlayerCheckpoint(giveplayerid, -2430.6743,-602.9406,132.3062,15.0);
               CP[giveplayerid] = 104;
               GetPlayerName(playerid, sendername, sizeof(sendername));
               GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
               format(string, sizeof(string), "DRIFT RACE ORGANIZATOR %s je pozvao %s na startnu liniju broj 1.", sendername, giveplayer);
               SendClientMessageToAll(COLOR_LIGHTRED, string);
            }
         }
         else
         {
            SendClientMessage(playerid, COLOR_GRAD2, " Niste autorizirani za koristenje ove naredbe !");
         }
      }
      return 1;
   }

   if (strcmp(cmd, "/setdrift2", true)==0)
   {
      if(IsPlayerConnected(playerid))
      {
         tmp = strtok(cmdtext, idx);
         if(!strlen(tmp))
         {
            SendClientMessage(playerid, COLOR_GRAD2, "KORISTITE: /setdrift2 [IgracevID/DioImena]");
            return 1;
         }
         giveplayerid = ReturnUser(tmp);
         if (PlayerInfo[playerid][pAdmin] >= 2)
         {
            if(IsPlayerConnected(giveplayerid))
            {
               SetPlayerCheckpoint(giveplayerid, -2426.2856,-599.5851,132.3045,15.0);
               CP[giveplayerid] = 104;
               GetPlayerName(playerid, sendername, sizeof(sendername));
               GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
               format(string, sizeof(string), "DRIFT RACE ORGANIZATOR %s je pozvao %s na startnu liniju broj 2.", sendername, giveplayer);
               SendClientMessageToAll(COLOR_LIGHTRED, string);
            }
         }
         else
         {
            SendClientMessage(playerid, COLOR_GRAD2, " Niste autorizirani za koristenje ove naredbe !");
         }
      }
      return 1;
   }

cpovi stavim ispod svih cp-a

Citat//------------------------------Drift Checkpoint------------------------------------------
   else if(CP[playerid] == 104) { CP[playerid] = 105; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -2454.644531,-538.676697,118.286636,15.0); } //1
   else if(CP[playerid] == 105) { CP[playerid] = 106; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -2482.149902,-482.166656,97.423889,15.0); } //2
   else if(CP[playerid] == 106) { CP[playerid] = 107; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -2545.899902,-491.106842,79.650833,15.0); } //3
   else if(CP[playerid] == 107) { CP[playerid] = 108; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -2627.802734,-496.420258,69.272408,15.0); } //4
   else if(CP[playerid] == 108) { CP[playerid] = 109; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -2589.826660,-469.287018,67.241432,15.0); } //5
   else if(CP[playerid] == 109) { CP[playerid] = 110; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -2511.705322,-454.622589,72.313087,15.0); } //6
   else if(CP[playerid] == 110) { CP[playerid] = 111; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -2451.494629,-423.411560,83.512276,15.0); } //7
   else if(CP[playerid] == 111) { CP[playerid] = 112; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -2388.259033,-423.135590,82.032257,15.0); } //8
   else if(CP[playerid] == 112) { CP[playerid] = 113; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -2322.510498,-454.460358,79.020401,15.0); } //9
   else if(CP[playerid] == 113) { CP[playerid] = 114; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -2332.261475,-423.263977,78.505295,15.0); } //10
   else if(CP[playerid] == 114) { CP[playerid] = 115; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -2381.027100,-377.005524,75.160461,15.0); } //11
   else if(CP[playerid] == 115) { CP[playerid] = 116; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -2474.070313,-367.113403,65.086037,15.0); } //12
   else if(CP[playerid] == 116) { CP[playerid] = 117; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -2616.344482,-376.495667,39.366280,15.0); } //13
   else if(CP[playerid] == 117) { CP[playerid] = 118; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -2676.944092,-425.590546,30.813644,15.0); } //14
   else if(CP[playerid] == 118) { CP[playerid] = 119; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -2674.271973,-462.526154,26.224342,15.0); } //15
   else if(CP[playerid] == 119) { CP[playerid] = 120; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -2673.152588,-515.812805,17.283726,15.0); } //16
   else if(CP[playerid] == 120) { CP[playerid] = 121; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -2713.156494,-530.320190,9.472530,15.0); } //17
   else if(CP[playerid] == 121) { CP[playerid] = 122; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -2754.357422,-510.397461,6.358517,15.0); } //18
   else if(CP[playerid] == 122) { CP[playerid] = 123; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -2791.822998,-483.670715,6.187500,15.0); } //19
   else if(CP[playerid] == 123)
   {
      DisablePlayerCheckpoint(playerid);
        GetPlayerName(playerid, name, sizeof(name));
      format(string, sizeof(string), " DRIFT RACE: %s je upravo prosao finish. ", name);
      SendClientMessageToAll(COLOR_LIGHTRED, string);
   }
   //------------------------------Drift Checkpoint------------------------------------------
   else if(CP[playerid] == 128) { CP[playerid] = 129; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 1320.8958,-930.1558,37.0194,15.0); } //1
   else if(CP[playerid] == 129) { CP[playerid] = 130; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 1362.7484,-952.0725,33.7771,15.0); } //2
   else if(CP[playerid] == 130) { CP[playerid] = 131; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 1354.0112,-1032.4576,25.7066,15.0); } //3
   else if(CP[playerid] == 131) { CP[playerid] = 132; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 1354.9006,-1140.2679,23.2370,15.0); } //4
   else if(CP[playerid] == 132) { CP[playerid] = 133; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 1438.9629,-1159.8882,23.2230,15.0); } //5
   else if(CP[playerid] == 133) { CP[playerid] = 134; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 1453.9469,-1256.3115,12.9500,15.0); } //6
   else if(CP[playerid] == 134) { CP[playerid] = 135; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 1454.3058,-1419.1880,12.9344,15.0); } //7
   else if(CP[playerid] == 135) { CP[playerid] = 136; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 1578.5089,-1440.7316,12.9575,15.0); } //8
   else if(CP[playerid] == 136) { CP[playerid] = 137; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 1605.8699,-1328.8138,16.8673,15.0); } //9
   else if(CP[playerid] == 137) { CP[playerid] = 138; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 1697.5841,-1301.3568,13.0581,15.0); } //10
   else if(CP[playerid] == 138) { CP[playerid] = 139; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 1715.2667,-1192.8811,23.0921,15.0); } //11
   else if(CP[playerid] == 139) { CP[playerid] = 140; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 1653.5157,-1161.3542,23.3782,15.0); } //12
   else if(CP[playerid] == 140) { CP[playerid] = 141; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 1637.1343,-1081.6296,23.4732,15.0); } //13
   else if(CP[playerid] == 141) { CP[playerid] = 142; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 1577.7823,-1028.6666,23.4595,15.0); } //14
   else if(CP[playerid] == 142) { CP[playerid] = 143; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 1458.5121,-1033.2172,23.2231,15.0); } //15
   else if(CP[playerid] == 143) { CP[playerid] = 144; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 1370.6368,-1021.2849,26.1123,15.0); } //16
   else if(CP[playerid] == 144) { CP[playerid] = 145; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 1376.2849,-963.0297,33.5199,15.0); } //17
   else if(CP[playerid] == 145) { CP[playerid] = 146; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 1301.2386,-925.0508,39.0323,15.0); } //18
   else if(CP[playerid] == 146) { CP[playerid] = 147; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 1245.7822,-933.5011,42.1140,15.0); } //19
   else if(CP[playerid] == 147)
   {
      DisablePlayerCheckpoint(playerid);
        GetPlayerName(playerid, name, sizeof(name));
      format(string, sizeof(string), " STREET RACE: %s je upravo prosao finish. ", name);
      SendClientMessageToAll(COLOR_LIGHTRED, string);
   }