24.06.2019, 19:51
pawn Code:
CMD:bonus(playerid)
{
if(PlayerInfo[playerid][pLevel] == 1 || GetPlayerScore(playerid) == 1)
{
SendClientMessage(playerid,-1,"Deoarece ai folosit comanda /bonus ai primit:");
SendClientMessage(playerid,-1,"-LEVEL: 3");
SendClientMessage(playerid,-1,"-MONEY: $5.000.000");
GivePlayerMoney(playerid,5000000);
SetPlayerScore(playerid, 3);
PlayerInfo[playerid][pLevel] = GetPlayerScore(playerid));
}
else
{
SendClientMessage(playerid,-1,"Trebuie sa ai minim level 1 pentru a folosi aceasta comanda.");
}
return 1;
}