02.06.2010, 02:03
no dont work.
When i create a vehicle, it's veh1[playerid] = CreateVehicle(...)
if i made that:
public OnPlayerDisconnect(playerid, reason)
{
DestroyVehicle(veh1[playerid]);
return 1;
}
work's perfectly. But i want in the payday, so for to test i use /test command.
dont' work...
When i create a vehicle, it's veh1[playerid] = CreateVehicle(...)
if i made that:
public OnPlayerDisconnect(playerid, reason)
{
DestroyVehicle(veh1[playerid]);
return 1;
}
work's perfectly. But i want in the payday, so for to test i use /test command.
Код:
if(!strcmp(cmd,"/test",true)) { for(new i = 0; i < MAX_PLAYERS; i++) { if(!IsPlayerConnected(veh1[i])) { DestroyVehicle(veh1[i]); } } }