06.05.2012, 20:31
Hello everybody.I got still same problem.When I use command /streak.And type RC.I Spawn into RC and when press KEY_FIRE It won`t explode.I don`t know why.I did debug.Problem is in this lines but lines looks ok.
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(PRESSED(KEY_FIRE))
{
if(KS[playerid][Inside] == 1)
{
new Float:burnx, Float:burny, Float:burnz;
GetPlayerPos(playerid,burnx, burny, burnz);
CreateExplosion(burnx, burny , burnz, 7,10.0);
CreateExplosion(burnx, burny , burnz, 7,10.0);
CreateExplosion(burnx, burny , burnz, 7,10.0);
SetPlayerPos(playerid, burnx, burny, burnz+2);
DestroyVehicle(LVehicleID);
KS[playerid][Inside] = 0;
}
else
{
SendClientMessage(playerid,0xFF0000FF,"You must be in a RC vehicle to explode it.");
}
}
return 1;
}