06.12.2012, 11:18
Quote:
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;
}