14.03.2014, 07:23
Quote:
This topic name might be wrong regarding this subject which i could need some help with, but anyhow.
Inside this script part, i'm trying to add that when player /detonate they will get 6 stars wanted level but no matter how I try it, when i compile it says "undefined symbol: SetWantedLevel". I'm not sure how to define that, a simple #define SetWantedLevel isn't working. Do i need to include another Inc? Or.. What's up here? PHP код:
|
PHP код:
CMD:detonate(playerid, params[])
{
new Float:Pos[3];
if(!DetonateBomb[playerid] == 1) return SendClientMessage(playerid, -1, "[SRV] You don't have a bomb placed.");
new SVID = SecurityVanID[playerid];
GetVehiclePos(SVID, Pos[0], Pos[1], Pos[2]);
CreateExplosion(Pos[0], Pos[1], Pos[2], 7, 10);
SetVehicleHealth(SVID, 350.0);
SetPlayerWantedLevel(playerid, 6);
SVBeingRobbed[SVID] = 1;
DetonateBomb[playerid] = 0;
MoneyLeft[SVID] = 5;
SendClientMessage(playerid, -1, "[SRV] The bomb went off! "{1A80E6}"/fill "{FFFFFF}"the bags and get out of there!");
}