25.07.2012, 20:11
pawn Код:
if (strcmp("/mymoney", cmdtext, true, 8) == 0)
{
new string[128]; //creates the string to set the message for the player
new money; //creates the var for the player's money
money = GetPlayerMoney(playerid); //sets money as the player's current money
format(string, sizeof(string), "You currently have $%d", money); //sets the message for the player
SendClientMessage(playerid, -1, string); //sends the message
return 1;
}