Quote:
Originally Posted by vvhy
Put this under your
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