CMD:suicide(playerid, params[])
{
if(gTeam[playerid] == T_IRAQ )
{
new seat = GetPlayerVehicleSeat(playerid);
return 0 == seat ? DestroyVehicle(GetPlayerVehicleID(playerid)) : 0;
}
else return SendClientMessage(playerid, 0xFF0000FF, "You must be a Taliban to use this command.");
}
CMD:suicide(playerid, params[])
{
if(gTeam[playerid] == T_IRAQ )
{
new seat = GetPlayerVehicleSeat(playerid);
return 0 == seat ? DestroyVehicle(GetPlayerVehicleID(playerid)) : 0;
SetVehicleHealt(GetPlayerVehicleID(playerid)), 10);
}
else return SendClientMessage(playerid, 0xFF0000FF, "You must be a Taliban to use this command.");
}
new vehicleid = GetPlayerVehicleID(playerid);
SetVehicleHealth(vehicleid,0);
new Float:x, Float:y, Float:z;
GetVehiclePos(vehicleid, x, y, z);
CreateExplosion(x, y, z, 7, 7.0);
CMD:suicide(playerid, params[])
{
if(gTeam[playerid] == T_IRAQ )
{
new Float:x, Float:y, Float:z;
GetVehiclePos(vehicleid, x, y, z);
new seat = GetPlayerVehicleSeat(playerid);
return 0 == seat ? (CreateExplosion(x, y, z, 7, 7.0),SetVehicleHealth(GetPlayerVehicleID(playerid),0)) : 0;
}
else return SendClientMessage(playerid, 0xFF0000FF, "You must be a Taliban to use this command.");
}
CMD:suicide(playerid, params[])
{
if(gTeam[playerid] == T_IRAQ)
{
new vehicleid = GetPlayerVehicleID(playerid);
SetVehicleHealth(vehicleid,0);
new Float:x, Float:y, Float:z;
GetVehiclePos(vehicleid, x, y, z);
CreateExplosion(x, y, z, 7, 7.0);
}
else return SendClientMessage(playerid, 0xFF0000FF, "You must be a Taliban to use this command.");
return 1;
}
CMD:suicide(playerid, params[])
{
if(gTeam[playerid] != T_IRAQ) return SendClientMessage(playerid, 0xFF0000FF, "You must be a Taliban to use this command.");
new vehicleid = GetPlayerVehicleID(playerid);
SetVehicleHealth(vehicleid,0);
new Float:x, Float:y, Float:z;
GetVehiclePos(vehicleid, x, y, z);
CreateExplosion(x, y, z, 7, 7.0);
return 1;
}
CMD:suicide(playerid, params[])
{
if(gTeam[playerid] != T_IRAQ) return SendClientMessage(playerid, 0xFF0000FF, "You must be a Taliban to use this command.");
new vehicleid = GetPlayerVehicleID(playerid);
SetVehicleHealth(vehicleid,0);
SetPlayerHealth(playerid, 0);
new Float:x, Float:y, Float:z;
GetVehiclePos(vehicleid, x, y, z);
CreateExplosion(x, y, z, 7, 7.0);
return 1;
}
what you have to do now is also use SetPlayerHealth, so that he dies immediately.
|