How to create more commands in one fs
#6

Quote:
Originally Posted by aRoach
View Post
pawn Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/buyparrot", cmdtext, true, 10) == 0)
    {
        if(GetPlayerMoney(playerid) >=20000) return SendClientMessage(playerid, 0xFF0000FF,"You dont have enough money!");

        GivePlayerMoney(playerid,-20000);
        SetPlayerAttachedObject(playerid,1,19078,1,0.32072 2,-0.067912,-0.165151,0.000000,0.000000,0.000000,1.000000,1.000 000,1.000000);
        return 1;
    }
    if (strcmp("/sellparrot", cmdtext, true, 10) == 0)
    {
        GivePlayerMoney(playerid,20000);
        return 1;
    }
    return 1;
}
Look and compare( learn )...
thanks dude
Reply


Messages In This Thread
How to create more commands in one fs - by wumpyc - 29.09.2011, 13:01
Re: How to create more commands in one fs - by wumpyc - 29.09.2011, 13:27
Re: How to create more commands in one fs - by wumpyc - 29.09.2011, 13:37
Re: How to create more commands in one fs - by wumpyc - 29.09.2011, 13:42
Re: How to create more commands in one fs - by aRoach - 29.09.2011, 13:45
Re: How to create more commands in one fs - by wumpyc - 29.09.2011, 13:47
Re: How to create more commands in one fs - by [Diablo] - 29.09.2011, 13:52
Re: How to create more commands in one fs - by Vince - 29.09.2011, 13:57

Forum Jump:


Users browsing this thread: 1 Guest(s)