How to stop a sendclientmessage from spamming
#5

Quote:
Originally Posted by RealCop228
Посмотреть сообщение
Can you post the full code, please?
Here:

pawn Код:
if(IsPlayerInAnyVehicle(playerid))
            {
                new vehicleid = GetPlayerVehicleID(playerid);
                new Float:vHP;
                new engine, lights, alarm, doors, bonnet, boot, objective;
                GetVehicleHealth(vehicleid, vHP);
                if(vHP < 400.00)
                {
                    if(GetPVarInt(playerid, "Vehicle_Breaking_Down") == 0) {
                        SetVehicleHealth(vehicleid, 400.00);
                        SendClientMessage(playerid, YELLOW, "The vehicle has taken to much damage and has broken.");
                        GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
                        SetVehicleParamsEx(vehicleid, 0, lights, alarm, doors, bonnet, boot, objective);
                        SetPVarInt(playerid, "Vehicle_Breaking_Down", 1);
                    }
                }
            }
Reply


Messages In This Thread
How to stop a sendclientmessage from spamming - by Zalman - 17.03.2013, 16:51
Re: How to stop a sendclientmessage from spamming - by Sinner - 17.03.2013, 16:54
Re: How to stop a sendclientmessage from spamming - by Zalman - 17.03.2013, 17:00
Re: How to stop a sendclientmessage from spamming - by Scenario - 17.03.2013, 17:00
Re: How to stop a sendclientmessage from spamming - by Zalman - 17.03.2013, 17:02
Re: How to stop a sendclientmessage from spamming - by Scenario - 17.03.2013, 17:16
Re: How to stop a sendclientmessage from spamming - by Zalman - 17.03.2013, 17:41

Forum Jump:


Users browsing this thread: 2 Guest(s)