pawn Код:
dcmd_buymeow(playerid, params[])
{
new giveplayerid;
if (sscanf(params, "u", giveplayerid)) SendClientMessage(playerid, 0x6495EDAAA, "Usage: /Buymeow [ID/Name]");
else if (giveplayerid == INVALID_PLAYER_ID) SendClientMessage(playerid, 0xFF9900AA, "Wrong name or ID!");
else if(Meow[giveplayerid] != 50) SendClientMessage(playerid, COLOR, "This person doesn't have Meow[playerid] = 50;");
else
{
GivePlayerMoney(playerid,-1000);
GivePlayerMoney(giveplayerid,1000);
SendClientMessage(playerid,0x24FF0AB9, "You bought meows!!");
SendClientMessage(giveplayerid,0x24FF0AB9, "You have succesfully sold your meows");
Meow[giveplayerid] = 0;
SetPlayerDrunkLevel(playerid, 3200);
}
return 1;
}