Dynamic Cps with command to rob
#6

Quote:
Originally Posted by vvhy
View Post
Put this under your
pawn Code:
public Server()
pawn Code:
if(GetPVarInt(i, "RobbingPizza") == 1)
{
    new string[120]; new pname[24]; GetPlayerName(i, pname, 24);
    new rand = random(500000);
    format(string, 120, "[ROBBERY] %s(%d) has robbed $%d from the Well Stacked Pizza.", pname, i, rand);
    SendClientMessageToAll(COLOR_LIGHTBLUE, string);
    IRC_Say(gGroupID, IRC_CHANNEL, string);
    GivePlayerMoney(i, rand); IncreaseWantedLevel(i, 6); IncreaseScore(i, 3);
    format(string, 120, "[DISPATCH] %s(%d) has robbed the Well Stacked Pizza. Respond now.", pname, i);
    SendCopMessage(string);
    format(string, 120, "Type /radiooff to turn your radio off and stop recieving alerts.");
    SendCopMessage(string);
    SetPVarInt(i, "RobbingPizza", 0);
}
i had already got it to work, thanks for your help anyways
Reply


Messages In This Thread
Dynamic Cps with command to rob - by BossZk - 26.04.2013, 14:08
Re: Dynamic Cps with command to rob - by BossZk - 02.05.2013, 03:09
Re: Dynamic Cps with command to rob - by vvhy - 02.05.2013, 03:24
Re: Dynamic Cps with command to rob - by BossZk - 02.05.2013, 04:17
Re: Dynamic Cps with command to rob - by vvhy - 02.05.2013, 04:32
Re: Dynamic Cps with command to rob - by BossZk - 02.05.2013, 05:30

Forum Jump:


Users browsing this thread: 1 Guest(s)