Im Currently working on a Counter-Strike GM I need 2 commands Help from u guys plse help
1st:
Plantbomb
}
if(strcmp(cmd, "PlantBomb", true) == 0)
{
new param[256];
param = strtok(cmdtext,idx);
if(PlayerToPoint(25.0,playerid, -1108.7896, 300.2706, 12.2578))SendClientMessage(playerid,COLOR_GREEN,"You need to be in Bomb Site");
if(PlayerInfo[playerid][Ts] = 1) // Ts means Terrerist strike
if(IsPlayerHavingBombs[playerid] = 1)
{
PlayerInfo[playerid][Bombplanted] = 1;
SendClientMessageToAll(COLOR_RED,"Bomb Has Been Planted");
}
return 1;
}
in this When 10seconds over and Bomb Blasted it announces Terrorist Wins!!
2nd:
}
if(strcmp(cmd, "DefuseBomb", true) == 0)
{
new param[256];
param = strtok(cmdtext,idx);
if(PlayerToPoint(25.0,playerid, -1108.7896, 300.2706, 12.2578))SendClientMessage(playerid,COLOR_GREEN,"You need to be in Bomb Site");
if(PlayerInfo[playerid][Cs] = 1) Counter-Stike
if(IsPlayerHavingDefuser[playerid] = 1)
if(PlayerInfo[playerid][Bombplanted] = 1)
{
PlayerInfo[playerid][BombDefused] = 1;
SendClientMessageToAll(COLOR_RED,"Counter-Strike Wins!");
SendClientMessageToAll(COLOR_RED,"Bomb Has Been Defused");
}
return 1;
If Defused With 10 sec It Announces Counter Terrerist Wins!!
im Not Good at Timerx function plse help me !!