IsPlayerInRangeOfPoint
#9

Quote:
Originally Posted by Sergeant
Посмотреть сообщение
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 код:
CMD:detonate(playeridparams[])
{
        new 
Float:X,Float:Y,Float:Z;
        if(
DetonateBomb[playerid] == 1)
        {
        new 
SVID SecurityVanID[playerid];
        
GetVehiclePos(SVIDX,Y,Z);
        
CreateExplosion(XYZ710);
        
SetVehicleHealth(SVID350);
        
SVBeingRobbed[SVID] = 1;
        
DetonateBomb[playerid] = 0;
        
MoneyLeft[SVID] = 5;
        
SendClientMessage(playerid, -1,"The bomb went off,  /fill  the bags and get out of here.");
        }
        else return 
SendClientMessage(playerid, -1,"You don't have a bomb planted anywhere.");
        return 
1;

If you need more then just this part, let me know I will post it asap.
PHP код:
CMD:detonate(playeridparams[])
{
    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(SVIDPos[0], Pos[1], Pos[2]);
    
    
CreateExplosion(Pos[0], Pos[1], Pos[2], 710);
    
SetVehicleHealth(SVID350.0);
    
SetPlayerWantedLevel(playerid6);
    
    
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!");

Reply


Messages In This Thread
IsPlayerInRangeOfPoint - by Sergeant - 14.03.2014, 04:47
Re: IsPlayerInRangeOfPoint - by Flake. - 14.03.2014, 05:07
Re: IsPlayerInRangeOfPoint - by Sergeant - 14.03.2014, 05:31
Re: IsPlayerInRangeOfPoint - by Sergeant - 14.03.2014, 07:09
Re: IsPlayerInRangeOfPoint - by Ceathor - 14.03.2014, 07:11
Re: IsPlayerInRangeOfPoint - by Sergeant - 14.03.2014, 07:14
Re: IsPlayerInRangeOfPoint - by Flake. - 14.03.2014, 07:20
Re: IsPlayerInRangeOfPoint - by Ceathor - 14.03.2014, 07:22
Re: IsPlayerInRangeOfPoint - by Ari - 14.03.2014, 07:23
Re: IsPlayerInRangeOfPoint - by Sergeant - 14.03.2014, 08:34

Forum Jump:


Users browsing this thread: 1 Guest(s)