Help with OnPlayerUpdate
#4

You can store if they've seen the message inside of a variable.
Ex:
pawn Код:
new PlayerSawMessage[MAX_PLAYERS] = -1;
public OnPlayerUpdate(playerid)
{
    new vehicleid = GetPlayerVehicleID(playerid);
    if(IsTrailerAttachedToVehicle(vehicleid) && ~PlayerSawMessage[playerid])
    {
        SendClientMessage(playerid, COLOR_MAXZONE, "Test");
                PlayerSawMessage[playerid] = 0;
    }
        else if(PlayerSawMessage[playerid]) PlayerSawMessage[playerid] = -1;
    return 1;
}

public OnPlayerDisconnect(playerid, reason) {
    PlayerSawMessage[playerid] = -1;
    return true;
}
Reply


Messages In This Thread
Help with OnPlayerUpdate - by danielpalade - 22.04.2015, 20:50
Re: Help with OnPlayerUpdate - by Azula - 22.04.2015, 20:55
Respuesta: Re: Help with OnPlayerUpdate - by danielpalade - 22.04.2015, 22:52
Re: Help with OnPlayerUpdate - by Abagail - 22.04.2015, 22:55

Forum Jump:


Users browsing this thread: 2 Guest(s)