04.12.2017, 23:54
Quote:
mais quando rouba ou cai do veiculo nгo some, quando sai some mais quando algum player rouba ou se o player cair ele n some
|
PHP код:
new vDetect[MAX_PLAYERS];
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER)
{
vDetect[playerid] = GetPlayerVehicleID(playerid);
}
if(oldstate == PLAYER_STATE_DRIVER && newstate == PLAYER_STATE_ONFOOT)
{
DestroyVehicle(vDetect[playerid]);
SendClientMessage(playerid, -1, "Veнculo destruнdo");
}
return 1;
}