Jump to content

xpLode

Membru
  • Posts

    28
  • Joined

  • Last visited

Everything posted by xpLode

  1. La onplayerregister(sau cum ai tu) sau onplayerconnect ar trebui sa ai un playerVariables[playerid][pHours] += 100; altfel nu-mi explic.
  2. OnPlayerKeyStateChange pui asta: if(newkeys & KEY_NO) { if(IsPlayerConnected(playerid)) { new ivID = GetClosestVehicleToPlayer(playerid); new namee[MAX_PLAYER_NAME]; GetPlayerName(playerid, namee, sizeof(namee)); if(PlayerInfo[playerid][pPcarkey] == ivID || PlayerInfo[playerid][pPcarkey2] == ivID || PlayerInfo[playerid][pPcarkey3] == ivID) { if(GetClosestVehicleToPlayer(playerid) > 5.0) { if(CarInfo[ivID][cLock] == 0) { CarInfo[ivID][cLock] = 1; format(string, sizeof(string), "%s~n~~r~Locked",CarInfo[ivID][cDescription]); GameTextForPlayer(playerid, string, 3000, 3); GetVehicleParamsEx(ivID,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(ivID,engine,lights,alarm,1,bonnet,boot,objective); } if(CarInfo[ivID][cLock] == 1) { CarInfo[ivID][cLock] = 0; format(string, sizeof(string), "%s~n~~g~Unlocked",CarInfo[ivID][cDescription]); GameTextForPlayer(playerid, string, 3000, 3); GetVehicleParamsEx(ivID,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(ivID,engine,lights,alarm,0,bonnet,boot,objective); } } } } }
  3. Ti-am recreeat comanda(am si optimizat-o un pic). Incearca acum: CMD:pizza(playerid,params[]) { new newcar = GetPlayerVehicleID(playerid), house; if(newcar != 448) SCM(playerid, -1, "You aren't in a pizza boy" ); if(playerVariables[playerid][pJob] == 6) SCM(playerid, -1, "You are not a pizza boy." ); if(playerVariables[playerid][pPiz] == 0) SCM(playerid, -1, "You can use /pizza only at 2 minutes."); PlayerIsSweeping[playerid] = 1; house = random(systemVariables[houseCount]); SetPlayerCheckpoint(playerid, houseVariables[house][hHouseExteriorPos][0], houseVariables[house][hHouseExteriorPos][1], houseVariables[house][hHouseExteriorPos][2], 5.0); SendClientMessage(playerid, COLOR_WHITE, "Your working hours is up! Go to red checkpoint."); playerVariables[playerid][pPiz] = 120; return 1; }
×
×
  • 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.