Is there anything wrong with this code?
#2

Give a try now:
pawn Код:
public OnPlayerEnterRaceCheckpoint(playerid)
{
    new pName[MAX_PLAYER_NAME],stringg[128];
    GetPlayerName(playerid,pName,sizeof(pName));
    PlayerPlaySound(playerid, 5461, 0.0, 0.0, 10.0);
    format(stringg,sizeof(stringg),"%s is faster than you all, getting 1st place!",pName);
        SendClientMessageToAll(0x33AA33AA,stringg); //after the format.
    DisablePlayerRaceCheckpoint(playerid); //also here, if you're trying to do something as "who reach the checkpoint first", should disable the checkpoint for everybody.
        /* Using this:
        new t = GetMaxPlayers();
        for(new p; p <= t; p++)
        {
             DisablePlayerRaceCheckpoint(p);
        }
        */

    return 1;
}
Best regards!
Reply


Messages In This Thread
Is there anything wrong with this code? - by ShawtyyMacJunior - 08.08.2012, 19:04
Respuesta: Is there anything wrong with this code? - by [DOG]irinel1996 - 08.08.2012, 19:05
Re: Is there anything wrong with this code? - by Magic_Time - 08.08.2012, 19:05

Forum Jump:


Users browsing this thread: 1 Guest(s)