[POMOC]Dopuni skriptu

Započeo Lukks, Avgust 04, 2011, 04:06:03 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristite:Moja skripta
Deo skripte:stavio dole
Vide slika://
Opis problema:Napravio sam ovo i sad mi treba da stavim da izmedju kucanja komande /posiljka treba da prodje 1 vremena,zamolio bih nekoga da mi to uradi jer sam i sam preko glave,ovo je za mene i previse znaci nmg ni da se snadjem i sve se bojim da cu da sjebem nesto

Citat
#include <a_samp>
new Float:RandomSpawn[][4] =
{
    // Positions, (X, Y, Z and Facing Angle)
    {1965.3783, 1343.1572, 15.3746,3.0},
    {1978.3783, 1343.1572, 15.3746,3.0},
    {1985.3783, 1343.1572, 15.3746,3.0}
};
#define COLOR_GREEN 0xFFFFFFAA
#if defined FILTERSCRIPT



public OnFilterScriptInit()
{
   print("\n--------------------------------------");
   print(" Blank Filterscript by your name here");
   print("--------------------------------------\n");
   return 1;
}

public OnFilterScriptExit()
{
   return 1;
}

#else

main()
{
   print("\n----------------------------------");
   print(" Blank Gamemode by your name here");
   print("----------------------------------\n");
}

#endif

public OnGameModeInit()
{
   SetGameModeText("Blank Script");
   AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
   return 1;
}

public OnGameModeExit()
{
   return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
   SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
   SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
   SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
   return 1;
}



public OnPlayerCommandText(playerid, cmdtext[])
{
   if (strcmp("/posiljka", cmdtext, true, 10) == 0)// ponovo kuca i ponovo krece iz pocetksa netreba mnogo timera
     if(IsPlayerInRangeOfPoint(playerid, 6, 1958.3783, 1343.1572, 15.3746))
      {
       GivePlayerMoney(playerid, -1500);
       SendClientMessage(playerid, 0xC2A2DAAA,"Psssst....Evo ti lokacija al kostace te!");
      new rand = random(sizeof(RandomSpawn));
         SetPlayerCheckpoint(playerid,RandomSpawn[rand][0],RandomSpawn[rand][1],RandomSpawn[rand][2],RandomSpawn[rand][3]);
  }
       else
    {
     SendClientMessage(playerid, 0x2641FEAA,"Nemozes naci tu informaciju bilo gde,idi kod dousnika na crnom trzistu!");
    }
      return 1;
   }

public OnPlayerEnterCheckpoint(playerid)
{
        GameTextForPlayer(playerid,"Uzeo si oruzije",5000,6);
      SendClientMessage(playerid, 0xFFFFFFAA,"Uzeo si oruzije sad bezi odavde");
        GivePlayerWeapon(playerid, 31, 500);
        GivePlayerWeapon(playerid, 29, 500);
        GivePlayerWeapon(playerid, 24, 100);
        for(new i = 0; i < MAX_PLAYERS; i++) DisablePlayerCheckpoint(i);
   return 1;
}

forward mytimer();
public mytimer(){
return wait=0;
}


HVALA UNAPRED!



Ovo ide u "Trebam Nešto temu"
Lock ovo

Citat: [BM]Mr.Saxobeat poslato Avgust 04, 2011, 20:16:54 POSLE PODNE
Ovo ide u "Trebam Nešto temu"
Lock ovo

Jesi ti možda moderator ili nešto?

www.wiki.sa-mp.com/wiki/SetTimerEx

@saxo ahahaha :D cucemo se                                                                                                       hvala za taj timerex moze lock ;)

Nisam ja moderator on trazi nesto onda bi to trebalo ici u tu temu. :D