29.04.2011, 20:47
Hello, i am new to the community and i am beggining to script.
I am tryign to make a command to reset someones money, like /resetmoney [playerid]
This is what i came up with but it will not work.
PS:
This is in the script.
Sorry for my newbieness...
/DaRealz
I am tryign to make a command to reset someones money, like /resetmoney [playerid]
This is what i came up with but it will not work.
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(IsPlayerAdmin(playerid))
{
if(!strcmp(cmdtext, "/resetmoney", true))
{
ResetPlayerMoney(playerid);
SendClientMessage(playerid, COLOR_NORMAL_PLAYER, "An admin has reset your money.");
print("You have set this players money.");
return 1
}
pawn Код:
#define COLOR_NORMAL_PLAYER 0xFF4444FF
Sorry for my newbieness...
/DaRealz