function onPlayerCommand(playerid, command)
{
local cmd = split(command, \" \");
if(cmd[0] == \"/buyarmour\")
{
if(getPlayerMoney(playerid) < 500))
{
sendPlayerMessage(playerid, 0xFF0000AA, \"Nincs elég pénzed!\");
}
else setPlayerArmour(playerid, 100);
return 1;
}
return 0;
}
addEvent(\"playerCommand\", onPlayerCommand);