30.12.2013, 05:05
1st can i make it comfortable for player? i mean in this script i can drop unlimited bombs i wanna to set it only 5 times so can any one help me brah?
and 2nd is whenever i press FIGHT KEY so i'm getting this message while on FOOT STATUS
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == KEY_FIRE)
{
if (IsPlayerInAnyVehicle(playerid) && GetVehicleModel(GetPlayerVehicleID(playerid)) != 476)
{
return SendClientMessage(playerid, 0xFF0000AA, "");
}
else
{
new Float:VBPos[3];
new Float:X, Float:Y, Float:Z;
GetVehiclePos(GetPlayerVehicleID(playerid),VBPos[0],VBPos[1],VBPos[2]);
MapAndreas_FindZ_For2DCoord(VBPos[0], VBPos[1], VBPos[2]);
CreateExplosion(VBPos[0], VBPos[1], VBPos[2], 7, 20.0);
GetPlayerPos(playerid, X, Y, Z);
format(Stringz, sizeof(Stringz), "You've droped a bomb at the Destination Of "cred"%0.0f, %0.0f, %0.0f ", X, Y, Z);
SendClientMessage(playerid, orange, Stringz);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~>~~w~Bomb ~r~Droped~<~", 3000, 3);
}
}
and 2nd is whenever i press FIGHT KEY so i'm getting this message while on FOOT STATUS
pawn Код:
format(Stringz, sizeof(Stringz), "You've droped a bomb at the Destination Of "cred"%0.0f, %0.0f, %0.0f ", X, Y, Z);
SendClientMessage(playerid, orange, Stringz);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~>~~w~Bomb ~r~Droped~<~", 3000, 3);
}


