Nametodie Posted August 11, 2014 Report Share Posted August 11, 2014 if(strcmp(cmd, "/exit", true) == 0) { if(IsPlayerConnected(playerid)) { for(new i = 0; i < sizeof(HouseInfo); i++) { if (PlayerToPoint(3, playerid,HouseInfo[hExitx], HouseInfo[hExity], HouseInfo[hExitz])) { SetPlayerInterior(playerid,0); SetPlayerPos(playerid,HouseInfo[hEntrancex],HouseInfo[hEntrancey],HouseInfo[hEntrancez]); PlayerInfo[playerid][pInt] = 0; PlayerInfo[playerid][pLocal] = 255; if(HouseInfo[hHel] == 1) { new Float:tempheal; GetPlayerHealth(playerid,tempheal); if(tempheal < 100.0) { SetPlayerHealth(playerid,100.0); } } } } for(new i = 0; i < sizeof(BizzInfo); i++) { if (PlayerToPoint(3, playerid,BizzInfo[bExitX], BizzInfo[bExitY], BizzInfo[bExitZ])) { SetPlayerInterior(playerid,0); PlayerInfo[playerid][pInt] = 0; SetPlayerPos(playerid,BizzInfo[bEntranceX],BizzInfo[bEntranceY],BizzInfo[bEntranceZ]); PlayerInfo[playerid][pLocal] = 255; } } if(GetPlayerVehicleID(playerid) == 196 || GetPlayerVehicleID(playerid) == 197 || GetPlayerVehicleID(playerid) == 198 || GetPlayerVehicleID(playerid) == 199 || GetPlayerVehicleID(playerid) == 200 || GetPlayerVehicleID(playerid) == 201 || GetPlayerVehicleID(playerid) == 202 || GetPlayerVehicleID(playerid) == 203) { TogglePlayerControllable(playerid,1); RemovePlayerFromVehicle(playerid); } } return 1; } Problemă întâlnită (descriere): Cand urc intr-o masina de inchiriat, pot folosi doar /rentcar nu si /exit. Ero(area / rile) / warning-(ul / urile):-Liniile de cod / sursa / script-ul: Imagini / Video (optional):Aţi încercat să rezolvaţi singur?:Da Link to comment Share on other sites More sharing options...
WopsS Posted August 12, 2014 Report Share Posted August 12, 2014 Modifica liniile astea: [pawn]if(GetPlayerVehicleID(playerid) == 196 || GetPlayerVehicleID(playerid) == 197 || GetPlayerVehicleID(playerid) == 198 || GetPlayerVehicleID(playerid) == 199 || GetPlayerVehicleID(playerid) == 200 || GetPlayerVehicleID(playerid) == 201 || GetPlayerVehicleID(playerid) == 202 || GetPlayerVehicleID(playerid) == 203) { TogglePlayerControllable(playerid,1); RemovePlayerFromVehicle(playerid); }[/pawn] Link to comment Share on other sites More sharing options...
Джо Posted August 12, 2014 Report Share Posted August 12, 2014 Ce iduri au masinile? Link to comment Share on other sites More sharing options...
Nametodie Posted August 12, 2014 Author Report Share Posted August 12, 2014 Salut, am asa: Rentcar Sf Id-uri: 247, 248, 249, 250 Rentcar Ls Id-uri: 243, 244, 245, 246 Link to comment Share on other sites More sharing options...
Nametodie Posted August 12, 2014 Author Report Share Posted August 12, 2014 Modifica liniile astea: [pawn]if(GetPlayerVehicleID(playerid) == 196 || GetPlayerVehicleID(playerid) == 197 || GetPlayerVehicleID(playerid) == 198 || GetPlayerVehicleID(playerid) == 199 || GetPlayerVehicleID(playerid) == 200 || GetPlayerVehicleID(playerid) == 201 || GetPlayerVehicleID(playerid) == 202 || GetPlayerVehicleID(playerid) == 203) { TogglePlayerControllable(playerid,1); RemovePlayerFromVehicle(playerid); }[/pawn] Salut, am facut eu o confuzie , mersi wops. Link to comment Share on other sites More sharing options...
Question
Nametodie
Problemă întâlnită (descriere): Cand urc intr-o masina de inchiriat, pot folosi doar /rentcar nu si /exit.
Ero(area / rile) / warning-(ul / urile):-
Liniile de cod / sursa / script-ul:
Imagini / Video (optional):
Aţi încercat să rezolvaţi singur?:Da
Link to comment
Share on other sites
4 answers to this question
Recommended Posts