Defensive mod..
new Float:JOGSISCPRUTIN[4][3] =
{
{-87.7736,1133.9846,19.4002},
{-76.9644,1123.5735,19.4023},
{-88.0421,1123.4750,19.4003},
{-138.5397,1070.3549,19.4031}
};
new JSCPRUTIN[MAX_PLAYERS];
és ez meg lejjebb.
if(listitem == 1)
{
if(pInfo[playerid][pKresz] == 1)
{
if(pInfo[playerid][pRutin] == 0)
{
if(pInfo[playerid][pMoney] >= 150)
{
new x = JSCPRUTIN [playerid] ;
SendClientMessage(playerid, NARANCS, \"Elkezdted a rutin vizsgát, menj és szállj be az autóba!\");
SetPlayerCheckpoint(playerid, JOGSISCPRUTIN
- [0], JOGSISCPRUTIN
- [1], JOGSISCPRUTIN
- [2], 4.0);
JSCPRUTIN [ playerid ] ++;
Rutin[playerid] = 1;
pInfo[playerid][pMoney] -= 150;
}
else
{
SendClientMessage(playerid, PIROS, \"Nincs elég pénzed! ($150)\");
}
}
else
{
SendClientMessage(playerid, PIROS, \"Már letetted a rutin vizsgát!\");
}
}
else
{
SendClientMessage(playerid, PIROS, \"Elõször le kell tenned a kresz vizsgát!\");
}
}
if(Rutin[playerid] == 1)
{
SetPlayerCheckpoint ( playerid, JOGSISCPRUTIN [ 0 ] [ 0 ], JOGSISCPRUTIN [ 0 ] [ 1 ], JOGSISCPRUTIN [ 0 ] [ 2 ], 3.0 );
JSCPRUTIN [ playerid ] ++;
}
if (JSCPRUTIN[ playerid ] > 1 && JSCPRUTIN [ playerid ] != 4 )
{
new x = JSCPRUTIN [playerid];
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, JOGSISCPRUTIN
- [0], JOGSISCPRUTIN
- [1], JOGSISCPRUTIN
- [2], 4.0);
JSCPRUTIN[playerid] ++;
SendClientMessage(playerid, NARANCS, \"Rendben, gyerünk!\");
}