[POMOC]Kako da napravim komandu da nekog prozovem

Započeo hood9, April 03, 2011, 22:53:51 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.



dobro jutro.jbt ak znas reci mi ak ne nemoj spamat ovdje

Evo ti tu ostatak nemogu vise Slati PM poslo sam 20 u jednom satu pa nemogu vise evo ti tu ostatak
  if (strcmp("/so", cmdtext, true, 10) == 0)
    {
        MoveObject(drag,2042.660,-2497.361,5.255, 2.97);
        MoveObject(drag2,2042.668,-2491.000,5.255, 2.97);
        MoveObject(drag3,2042.681,-2490.132,5.255, 2.97);
        SendClientMessage(playerid,ZUTO, "Spustas traku za pocetak!"); // Nzm kako drugacije reci :D
return 1;
}
    if (strcmp("/sz", cmdtext, true, 10) == 0)
    {
        MoveObject(drag,2042.660,-2497.361,13.255, 5.97);
        MoveObject(drag2,2042.668,-2491.000,13.255, 5.97);
        MoveObject(drag3,2042.681,-2490.132,13.255, 5.97);
    SendClientMessage(playerid,ZUTO, "Dizes traku za pocetak!");
    PlayerPlaySound(playerid, 1153, 1589.053344,-1638.123168,14.122960);
return 1;
}
    if (strcmp("/autio", cmdtext, true, 10) == 0)
    {
MoveObject(od_auta,2078.545,-2445.934,5.320, 2.97);
SendClientMessage(playerid,ZUTO, "Spustas kapiju automobila!");
PlayerPlaySound(playerid, 1153, 1589.053344,-1638.123168,14.122960);
return 1;
}
    if (strcmp("/autiz", cmdtext, true, 10) == 0)
    {
  SendClientMessage(playerid,ZUTO, "Dizes kapiju automobila!");
PlayerPlaySound(playerid, 1153, 1589.053344,-1638.123168,14.122960);
MoveObject(od_auta,2078.545,-2445.934,15.320, 5.97);
return 1;
}

   if (strcmp("/draghelp", cmdtext, true, 10) == 0)
    {
  SendClientMessage(playerid,CRVENO, "Komande drag race:");
  SendClientMessage(playerid,ZUTO, "/raceon - ukljuciti drag");
  SendClientMessage(playerid,ZUTO, "/raceoff - iskljuciti drag");
  SendClientMessage(playerid,ZUTO, "/so - spustiti onu malu kapijicu za pocetak");
  SendClientMessage(playerid,ZUTO, "/sz - dignuti onu malu kapijicu za pocetak");
  SendClientMessage(playerid,ZUTO, "/autio - otvoriti kapiju auta");
  SendClientMessage(playerid,ZUTO, "/autiz - zatvoriti kapiju auta");
  SendClientMessage(playerid,CRVENO, "Drag race komande");
return 1;
}
if(strcmp(cmd, "/dragrace", true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
          tmp = strtok(cmdtext, idx);
         if(!strlen(tmp))
         {
            SendClientMessage(playerid, COLOR_GRAD2, "Pisi: /dragrace [id igraca/Dio imena]");
            return 1;
         }
         giveplayerid = ReturnUser(tmp);
         if (PlayerInfo[playerid][pAdmin] >= 1)
         {
            if(IsPlayerConnected(giveplayerid))
            {
                if(giveplayerid != INVALID_PLAYER_ID)
                {
                   GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
                  GetPlayerName(playerid, sendername, sizeof(sendername));
                  format(string, sizeof(string), "Admin: %s, tebi je admin %s aktivirao DragRace", giveplayer, sendername);
                  SendClientMessage(giveplayerid,COLOR_RED, string);
                  format(string, sizeof(string), "[DragRace] igracu %s je DragRace aktivirao admin %s", giveplayer, sendername);
                  SendAdminMessage(COLOR_GREEN, string);
                  PlayerInfo[giveplayerid][pDrag] = 1;
               }
            }
         }
         else
         {
            format(string, sizeof(string), "   %d nije aktivan igrac.", giveplayerid);
            SendClientMessage(playerid, COLOR_GRAD1, string);
      }
      return 1;
   }
}