How to make a command like this ..
#3

pawn Код:
CMD:job( playerid, params[ ] )
{
    if( isnull( params ) ) return SendClientMessage( playerid, -1, "usage: /job <mechanic/medic/lawyer..more>" );
    if( strcmp( params, "mechanic", true ) == 0 )
    {
        // Code for mechanic
    }
    else if( strcmp( params, "medic", true ) == 0 )
    {
        // Code for medic
    }
    else if( strcmp( params, "lawyer", true ) == 0 )
    {
        // Code for lawyer
    }
    // Rest of Jobs..
    else SendClientMessage( playerid, -1, "usage: /job <mechanic/medic/lawyer..more>" );
    return 1;
}
Reply


Messages In This Thread
How to make a command like this .. - by Thunderbolt - 06.02.2012, 16:08
Re: How to make a command like this .. - by niels44 - 06.02.2012, 16:10
Re: How to make a command like this .. - by Konstantinos - 06.02.2012, 16:12
Re: How to make a command like this .. - by Thunderbolt - 06.02.2012, 16:13
Re: How to make a command like this .. - by Konstantinos - 06.02.2012, 16:20

Forum Jump:


Users browsing this thread: 1 Guest(s)