13.11.2015, 07:41
ER
CMD
help me! thank all
PHP код:
[15:18:23] [debug] AMX backtrace:
[15:18:23] [debug] #0 002142b4 in public @_yCexit (0, 32741176, 0) from XGTA.amx
[15:18:23] [debug] #1 00214094 in public @yC_exit (0, 32741176, 0, 0) from XGTA.amx
[15:18:23] [debug] #2 native CallRemoteFunction () from samp-server.exe
[15:18:23] [debug] #3 0001d218 in ?? (0, 32741152, 0) from XGTA.amx
[15:18:23] [debug] #4 0001ca5c in ?? (0, 32741152) from XGTA.amx
[15:18:23] [debug] #5 000088f0 in public OnPlayerCommandText (0, 32741152) from XGTA.amx
[15:18:42] [part] Trong_Dat has left the server (0:1)
PHP код:
YCMD:exit(playerid, params[],help)
{
#pragma unused help
#pragma unused params
for(new g; g < MAX_GARAZA; g++)
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, GarazaInfo[g][gIzlazX], GarazaInfo[g][gIzlazY], GarazaInfo[g][gIzlazZ]))
{
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
{
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, GarazaInfo[UsaoUGarazu[playerid]][gUlazX], GarazaInfo[UsaoUGarazu[playerid]][gUlazY], GarazaInfo[UsaoUGarazu[playerid]][gUlazZ]);
UsaoUGarazu[playerid] = -1;
}
else if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
new vid = GetPlayerVehicleID(playerid);
if(vid == VoziloInfo[PI[playerid][Vozilo1]][vID])
{
SetVehiclePos(vid,GarazaInfo[UsaoUGarazu[playerid]][gUlazX], GarazaInfo[UsaoUGarazu[playerid]][gUlazY], GarazaInfo[UsaoUGarazu[playerid]][gUlazZ]);
SetVehicleVirtualWorld(vid,0);
////////////////////////////////////////////////////
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, GarazaInfo[UsaoUGarazu[playerid]][gUlazX], GarazaInfo[UsaoUGarazu[playerid]][gUlazY], GarazaInfo[UsaoUGarazu[playerid]][gUlazZ]);
PutPlayerInVehicle(playerid,vid,0);
UsaoUGarazu[playerid] = -1;
}
else if(vid == VoziloInfo[PI[playerid][Vozilo2]][vID])
{
SetVehiclePos(vid,GarazaInfo[UsaoUGarazu[playerid]][gUlazX], GarazaInfo[UsaoUGarazu[playerid]][gUlazY], GarazaInfo[UsaoUGarazu[playerid]][gUlazZ]);
SetVehicleVirtualWorld(vid,0);
////////////////////////////////////////////////////
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, GarazaInfo[UsaoUGarazu[playerid]][gUlazX], GarazaInfo[UsaoUGarazu[playerid]][gUlazY], GarazaInfo[UsaoUGarazu[playerid]][gUlazZ]);
PutPlayerInVehicle(playerid,vid,0);
UsaoUGarazu[playerid] = -1;
}
else if(vid == VoziloInfo[PI[playerid][Vozilo3]][vID])
{
SetVehiclePos(vid,GarazaInfo[UsaoUGarazu[playerid]][gUlazX], GarazaInfo[UsaoUGarazu[playerid]][gUlazY], GarazaInfo[UsaoUGarazu[playerid]][gUlazZ]);
SetVehicleVirtualWorld(vid,0);
////////////////////////////////////////////////////
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, GarazaInfo[UsaoUGarazu[playerid]][gUlazX], GarazaInfo[UsaoUGarazu[playerid]][gUlazY], GarazaInfo[UsaoUGarazu[playerid]][gUlazZ]);
PutPlayerInVehicle(playerid,vid,0);
UsaoUGarazu[playerid] = -1;
}
}
}
}
}
return 1;
}