[POMOC] CP se nece pokazati

Započeo |W|SoaD123, Novembar 13, 2010, 14:46:17 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Znaci ovako radio sam autoskolu i kad pozovem komandu nece mi se pokazati CP.
Evo i koda:

COMMAND:polaganje(playerid,params[])
{
    if(IsPlayerInRangeOfPoint(playerid,2.0,1490.6835,1305.7798,1093.2964))
    {
        if(GetPlayerMoney(playerid) < 2500)
        {
           SCM(playerid,siva,"Nemas 2,500$");
           return 1;
        }
        SetPVarInt(playerid,"Polaganje",1);
        SetPlayerPos(playerid,2107.1477,-1363.2452,23.9844);
        SetPlayerInterior(playerid,0);
        SetPlayerVirtualWorld(playerid,0);
        SCM(playerid,plava,"Odaberi jedan od ova 4 vozila");
    }
    else
    {
       SCM(playerid,siva,"Nisi u skoli");
    }
    return 1;
}


new
     vehicleid = GetPlayerVehicleID(playerid);
     if(newstate == 2)
     {
        if(GetPVarInt(playerid,"Polaganje") == 1)
        {
              SetPVarInt(playerid,"CP",1);
              SCM(playerid,zuta,"Sada vozi do crvenog markera na mapi");
              SetPlayerCheckpoint(playerid,2072.2480,-1335.5364,23.5632,4.0);
           }
     }


onda ispod public onplayerentercheckpoint:

if(GetPVarInt(playerid,"Polaganje") == 1)
    {
      if(GetPVarInt(playerid,"CP") == 1)
      {
         DisablePlayerCheckpoint(playerid);
         SetPVarInt(playerid,"CP",2);
         SetPlayerCheckpoint(playerid,-393.0234,-1388.0703,22.9331,4.0);
      }
      if(GetPVarInt(playerid,"CP") == 2)
      {
         DisablePlayerCheckpoint(playerid);
         SetPVarInt(playerid,"CP",3);
         SetPlayerCheckpoint(playerid,-550.6770,-1422.5079,12.0188,4.0);
      }
      if(GetPVarInt(playerid,"CP") == 3)
      {
         DisablePlayerCheckpoint(playerid);
         SetPVarInt(playerid,"CP",4);
         SetPlayerCheckpoint(playerid,-376.8569,-1367.2369,22.4640,4.0);
      }
      if(GetPVarInt(playerid,"CP") == 4)
      {
         DisablePlayerCheckpoint(playerid);
         SetPVarInt(playerid,"CP",5);
         SetPlayerCheckpoint(playerid,-567.7972,-1379.7377,16.1689,4.0);
      }
      if(GetPVarInt(playerid,"CP") == 5)
      {
         DisablePlayerCheckpoint(playerid);
         SetPVarInt(playerid,"CP",6);
         SetPlayerCheckpoint(playerid,-367.5444,-1330.1459,22.8860,4.0);
         }
      return 1;
    }


Hvala