/slap command
#2

EDIT: FAIL ME

ZCMD + SSCANF
pawn Код:
CMD:slap( playerid, params[ ] )
{
    // admin check here

    new id, ir[ 64 ];

    if ( sscanf( params, "us[64]", id, ir ) )
        return // sendclientmessage stuffs

    if ( id == INVALID_PLAYER_ID )
        return // scm stuffs

    new a[ 128 ]; format( a, sizeof a, "%s has slapped %s. reason : %s", getName( playerid ), getName( id ), ir );

    // slap stuffs here

    // abroadcast... blablabla

   SendClientMessageToAll( -1, a );

   return 1;
}

stock getName( lol )
{
    new name[24]; GetPlayerName( lol, name, 24 ); return name;
}
try this one
Reply


Messages In This Thread
/slap command - by seanny - 28.07.2011, 09:41
Re: /slap command - by Basicz - 28.07.2011, 09:50

Forum Jump:


Users browsing this thread: 1 Guest(s)