- 0
Eroare comanda /exit
-
Recently Browsing 0 members
- No registered users viewing this page.
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.
Question
Nametodie
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
4 answers to this question
Recommended Posts