Problem with function
#1

fixed
Reply
#2

Maybe because it's setting the score and giving the money in the explosion timer so it's counting it as the player that gets hit by the explosion gets the score and money?

Not sure how you could fix it though as if it is that maybe you could create a variable for bomb creator or something so if bomb kills anyone it gives score and money to bomb creator...
Reply
#3

Can u help me to create this
Reply
#4

https://sampforum.blast.hk/showthread.php?tid=608744
Reply
#5

////
Reply
#6

Did you try this :
PHP код:
CMD:bombplant(playeridparams[])
{
    if(
IsPlayerInDynamicCP(playeridPlantbombCP) && (gTeam[playerid] == T1 && (BombPlanted == 0)))
    {
        
ApplyAnimation(playerid"BOMBER""BOM_Plant"4.000000); // Place Bomb
        
Bomb CreateDynamicObject(1654211.786711824.107066.43200,   -87.000000.000000.00000);
        
BombExplodeTimer SetTimerEx("BombExplodes"110000false"i"playerid);
        
GameTextForAll("~r~Bomb Has Been Planted!"40003);
        
BombPlanted 1;
    }
    else if(
IsPlayerInDynamicCP(playeridPlantbombCP) && (gTeam[playerid] == T1 && (BombPlanted != 0))) return SendClientMessage(playeridCOLOR_RED"The bomb is already planted!");
    return 
1;

Reply
#7

Thanks rep+
Reply
#8

No problem. Good luck for your project.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)