[request] Verification - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [request] Verification (
/showthread.php?tid=579351)
[request] Verification -
SukMathcuck - 26.06.2015
Hello! I'm trying to make a check in my gamemode, you have a camera system in the first person, and when the player crouches (LETTER C), in the shots the player gets a great benefit, crouching without the camera in first person, I wonder how I can make this verification, there is something in the SA-MP which verifies that the person is crouching (check an animation?), as I thought to do with the letter C to squat, more if the person take a punch? does not work .. please someone help me? My code in progress:
PHP код:
if(/*verification*/ && GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
{
if(pUsarCamera[playerid] == 1)
{
if(pPrimeiro[playerid] == 1)
{
pPrimeiro[playerid] = 0;
CameraPrimeira(playerid, 0);
}
}
}
PHP код:
CameraPrimeira(playerid, 0); //activates the camera in first person
Re: [request] Verification -
liquor - 26.06.2015
Maybe
https://sampwiki.blast.hk/wroot/index.ph..._holding_a_key
It will require the player to hold crouch, but otherwise the effect might stay even when the player stop crouching..
Re: [request] Verification -
Larceny - 26.06.2015
Код:
if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_DUCK)
{
//code
}
https://sampwiki.blast.hk/wiki/SpecialActions