06.05.2012, 23:11
I have this code:
But when I press the button, it doesn't blow up? It just continue's moving..
How can I help this?
Thanks.
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(IsKeyJustDown(KEY_SPRINT, newkeys, oldkeys))
{
if(GetPlayerVehicleID(playerid == 441))
{
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
CreateExplosion(x,y,z,7,10.0);
CreateExplosion(x,y+2,z,7,10.0);
CreateExplosion(x,y-2,z,7,10.0);
RemovePlayerFromVehicle(playerid);
hasrc[playerid] = 0;
hasbomb[playerid] = 0;
}
}
return 1;
}
How can I help this?
Thanks.