How can you create a /apm
#3

pawn Код:
CMD:apm( playerid, params[ ] )
{
    if( !IsPlayerAdmin( playerid ) ) return SendClientMessage( playerid, -1, "You are not an Admin!" );
    new
        id,
        msg[ 120 ]
    ;
    if( sscanf( params, "rs[120]", id, msg ) ) return SendClientMessage( playerid, -1, "Usage: /apm <ID/Part Of Name> <message>" );
    if( id == INVALID_PLAYER_ID ) return SendClientMessage( playerid, -1, "Invalid player!" );
   
    new
        sz_Msg[ 144 ]
    ;
    format( sz_Msg, sizeof( sz_Msg ), "PM From Administrator: %s", msg );
    SendClientMessage( id, 0xFFFF00FF, msg );
    return 1;
}
Reply


Messages In This Thread
How can you create a /apm - by lulo356 - 28.10.2013, 12:33
Re: How can you create a /apm - by Dolby - 28.10.2013, 12:35
Re: How can you create a /apm - by Konstantinos - 28.10.2013, 13:07
Re: How can you create a /apm - by Brandon_More - 28.10.2013, 16:14
Re: How can you create a /apm - by Elie1996 - 11.11.2013, 20:15
Re: How can you create a /apm - by BodyBoardVEVO - 11.11.2013, 20:25

Forum Jump:


Users browsing this thread: 1 Guest(s)