SetPlayerMarkerForPlayer
#7

Try this.
pawn Код:
CMD:911( playerid, params[] )
{
    //911 system
    if( isnull( params ) )
        return SendClientMessage( playerid, COLOR_LIGHTBLUE, "Usage: /911 [Message and Location]" );

    new
        sendername[ 24 ],
        string[ 128 ],
    ;
   
    GetPlayerName( playerid, sendername, 24 );

    SendClientMessage( playerid, COLOR_GOLD, "[INFO]You have just called 911. Please Remain at your Location and wait." );

    for( new a, b = GetMaxPlayers(); a < b; a++ )
    {
        if( !IsPlayerConnected( a ) )
            continue;

        switch( GetPlayerSkin( a ) )
        {
            case 285, 282, 281, 283, 288, 278, 275, 279, 277, 274, 276:
            {
                SendClientMessage( i, COLOR_GREY, "-------------------------------------------------------------------------------------------------" );
                SendClientMessage( i, COLOR_ROYALBLUE, "DPS AUTOMATED DISPATCH" );
                SendClientMessage( i, COLOR_GREY, "Be advised. The following is a 911 call relay." );
                format( string, 128, "Caller name: %s", sendername );
                SendClientMessage( i, COLOR_GREY, string );
                format( string, 128, "Quoted informations: %s", params );
                SendClientMessage( i, COLOR_GREY, string );
                SendClientMessage( i, COLOR_GREY, "Suggested action: Get to the scene for a verify of the call." );
                SendClientMessage( i, COLOR_GREY, "Call code: Unknown." );
                SendClientMessage( i, COLOR_GREY, "-------------------------------------------------------------------------------------------------" );

                SetPlayerMarkerForPlayer( playerid, i, 0xFF0000FF );
            }
        }
    }

    return 1;
}
Reply


Messages In This Thread
SetPlayerMarkerForPlayer - by Gooday - 20.02.2012, 20:49
Re: SetPlayerMarkerForPlayer - by [MG]Dimi - 20.02.2012, 22:08
Re: SetPlayerMarkerForPlayer - by Gooday - 20.02.2012, 22:25
Re: SetPlayerMarkerForPlayer - by chrism11 - 20.02.2012, 22:32
Re: SetPlayerMarkerForPlayer - by ReneG - 20.02.2012, 22:35
Re: SetPlayerMarkerForPlayer - by [MG]Dimi - 21.02.2012, 11:52
Re: SetPlayerMarkerForPlayer - by Toreno - 21.02.2012, 13:31

Forum Jump:


Users browsing this thread: 2 Guest(s)