This Script Work Or Not?
#4

Quote:
Originally Posted by Trollolollo
Посмотреть сообщение
Oh Ok.How Can I Make It Need To Pay 5000 To Use This Command.
And I Want To Put Dialog 'God Mode CMD By Trollolollo'
pawn Код:
#define INFINITY (Float:0x7F800000)
#define DIALOG_MOCMD 32765
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/godmodez", cmdtext, true) == 0)
    {
        if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid,-1,"You need $5.000 to use this command");
        SetPlayerArmour(playerid, INFINITY);
        SetPlayerHealth(playerid, INFINITY);
        GivePlayerMoney(playerid,-5000);
        ShowPlayerDialog(playerid, DIALOG_MOCMD, DIALOG_STYLE_MSGBOX, "Title", "Message", "Button 1", " Button 2");
        return 1;
    }
    return 0;
}
Something like this ?
Reply


Messages In This Thread
This Script Work Or Not? - by Trollolollo - 06.12.2012, 11:08
Re: This Script Work Or Not? - by InfiniTy. - 06.12.2012, 11:09
Re: This Script Work Or Not? - by Trollolollo - 06.12.2012, 11:13
Re: This Script Work Or Not? - by InfiniTy. - 06.12.2012, 11:18

Forum Jump:


Users browsing this thread: 2 Guest(s)