Szerző Téma: Checkpoint  (Megtekintve 577 alkalommal)

Checkpoint
« Dátum: 2013. március 02. - 21:09:43 »
0 Show voters
Hy!
Egy munka rendszeren dolgozom minden szép és jó... de a checkpointok bazi nagyok :( és szeretném hogy kisebbek legyenek hogy tudom megoldani???
Parancs:
 
  if (strcmp(\"/pizza\", cmdtext, true, 10) == 0)
    {
        if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 448)
        {
            PizzaJob[playerid] = 1;
            new name[MAX_PLAYER_NAME], string[48];
            GetPlayerName(playerid, name, sizeof(name));
            format(string, sizeof(string), \"\", name );
            SendClientMessageToAll(COLOR_YELLOW, string);
            SetPlayerCheckpoint(playerid,2012.6134,-1729.3796,13.1536,10);
            SendClientMessage(playerid,COLOR_YELLOW,\"\");
            return 1;
        }
        SendClientMessage(playerid, COLOR_RED,\"\");
    }
    return 0;
}

 
EnterCheckpoint:
 
public OnPlayerEnterCheckpoint(playerid)
{
     if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 448)
     {
        if(PizzaJob[playerid] == 1){
            PizzaJob[playerid] = 2;
            SetPlayerCheckpoint(playerid,1362.4368,250.8896,19.5669,10);
            SendClientMessage(playerid,COLOR_YELLOW,\"* Please go to the next mark, and you\'ll be payed!\");
            return 1;
         }
        if(PizzaJob[playerid] == 2){
            PizzaJob[playerid] = 3;
            SetPlayerCheckpoint(playerid,1300.4159,193.1276,20.5233,10);
            return 1;
         }
        if(PizzaJob[playerid] == 3){
            PizzaJob[playerid] = 4;
            SetPlayerCheckpoint(playerid,1299.1611,140.5505,20.4068,10);
            return 1;
         }
        if(PizzaJob[playerid] == 4){
            PizzaJob[playerid] = 5;
            SetPlayerCheckpoint(playerid,1235.1870,224.0363,19.5547,10);
            return 1;
         }
        if(PizzaJob[playerid] == 5){
            PizzaJob[playerid] = 6;
            SetPlayerCheckpoint(playerid,1256.4705,274.8458,19.5547,10);
            return 1;
         }
        if(PizzaJob[playerid] == 6){
            PizzaJob[playerid] = 7;
            SetPlayerCheckpoint(playerid,1272.0430,309.3490,19.5547,10);
            return 1;
         }
        if(PizzaJob[playerid] == 7){
            PizzaJob[playerid] = 8;
            SetPlayerCheckpoint(playerid,1294.8738,235.4551,19.5547,10);
            return 1;
         }
        if(PizzaJob[playerid] == 8){
            PizzaJob[playerid] = 9;
            SetPlayerCheckpoint(playerid,1374.8148,469.3127,20.1811,10);
            return 1;
         }
        if(PizzaJob[playerid] == 9){
            PizzaJob[playerid] = 10;
            SetPlayerCheckpoint(playerid,1419.6729,389.4256,19.3297,10);
            return 1;
         }
        if(PizzaJob[playerid] == 10){
            PizzaJob[playerid] = 0;
            DisablePlayerCheckpoint(playerid);
            SendClientMessage(playerid,COLOR_YELLOW,\"\");
            GivePlayerMoney(playerid,400);
         }
     }
     return 1;
}

Nem elérhető Kovacs_Richard

  • 1743
  • HRP Fejlesztő
  • Discord: Kovacs_Richard#0321
    • Profil megtekintése
    • Hun Role Play Web
Checkpoint
« Válasz #1 Dátum: 2013. március 02. - 21:28:56 »
+1 Show voters
http://wiki.sa-mp.com/wiki/SetPlayerCheckpoint
egyszerû, a méretet kisebbre állítod :)
Régóta nem tevékenykedem, mint SA-MP scripter.
HRP Fejlesztő.

Nem elérhető ZyZu.

  • Globális moderátor
  • 8939
  • my turbo diesel forum
  • Discord: ZyZu.
    • Profil megtekintése
Checkpoint
« Válasz #2 Dátum: 2013. március 02. - 21:35:27 »
0 Show voters
Ami pirossal van jelölve az a size vagyis a méret.
SetPlayerCheckpoint(playerid,1362.4368,250.8896,19.5669,10);
helyett írsz
SetPlayerCheckpoint(playerid,1362.4368,250.8896,19.5669,3);

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal