03.10.2013, 21:23
To make an explosion when the player presses KEY_FIRE or Left Mouse Button you need this code
If you don't have this code, this code makes all skin run fast like CJ
pawn Code:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_FIRE)
{
new Float:PosX, Float: PosY, Float: PosZ;
GetPlayerPos(playerid, PosX, PosY, PosZ);
CreateExplosion(PosX, PosY, PosZ, 0, 5.0);
}
return 1;
}
&
If you don't have this code, this code makes all skin run fast like CJ
pawn Code:
//OnGameModeInit
UsePlayerPedAnims();