Jump to content
  • 0

Putin ajutor


angel

Question

Am bagat comanda /v lock la  comanda normala /lock.Si ma enerveaza ca merge sa dau /lock la masina mea personala doar daca stau in ea.Tot am modificat sa vad daca reusesc sa fac sa poti da /lock si daca esti in masina si daca nu esti.Dar nu imi iese,nu stiu ce are.

new keycar = PlayerInfo[playerid][pPcarkey];

    if(keycar != 999)

    {

      new locked[256];

        locked = strtok(cmdtext, idx);

      for(new i = 0; i < MAX_PLAYERS; i++)

{

if (IsPlayerConnected(i))

{

SetVehicleParamsForPlayer(keycar,i,0,0);

}

}

format(string, sizeof(string), "~w~ %s ~g~Unlocked",GetVehicleName(playerid));

GameTextForPlayer(playerid, string, 4000, 3);

CarInfo[keycar][cLock] = 0;

OnPropUpdate();

return 1;

}

else

{

for(new i = 0; i < MAX_PLAYERS; i++)

{

if (IsPlayerConnected(i))

{

SetVehicleParamsForPlayer(keycar,i,0,1);

}

}

format(string, sizeof(string), "~w~ %s ~r~Locked",GetVehicleName(playerid));

GameTextForPlayer(playerid, string, 4000, 3);

CarInfo[keycar][cLock] = 1;

OnPropUpdate();

return 1;

}

  }

    else

      {

      SendClientMessage(playerid, COLOR_GREY, "  You don't have a vehicle at slot 1");

        return 1;

      }

}

Daca ti-am fost de ajutor +1 Respect!Multumesc

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.