I started to learn pawn and i have small question.
Everything has to be under callbacks but what if i want to make something that doesn't suite any callback? For example i have a code like:
Where to put it then? It can't be put randomly at the start i guess. How should i do it then? For example random if (){} case.Code:{ new Float: health; new veh = GetPlayerVehicleID(playerid); GetVehicleHealth(veh, health); if (IsPlayerInVehicle(playerid, veh) && health < 900.0) { SendClientMessage(playerid, BLUE, "Your vehicle needs to be repaired!"); } return 1; }



Reply With Quote


