15.03.2011, 14:31
moving the object with keys isnt necessary since 0.3
You can get the front vector * distance and update the position of the object each 100 ms
Moving something with keys is only needed with things which arent in the world like textdraws, in my opinion
But if you are still interested
Click the link AK47317 provided and scroll up to the GetPlayerKeys function
You will notice the parameter updown and leftright, example included
You can get the front vector * distance and update the position of the object each 100 ms
Moving something with keys is only needed with things which arent in the world like textdraws, in my opinion
But if you are still interested
Click the link AK47317 provided and scroll up to the GetPlayerKeys function
You will notice the parameter updown and leftright, example included
Quote:
P.S.
How I Enable/Disable Cmds? i mean like you using The Cmd /heal and this cmd will disable in dm zones how i do thet? |
pawn Код:
//somewhere above
new
bool: IsPlayerInDM[MAX_PLAYERS];
pawn Код:
//InYour deathmatch command
IsPlayerInDM[playerid] = true;
pawn Код:
//In your heal command
if(IsPlayerInDM[playerid] == true) {
return 0;
}
pawn Код:
//If the player leave the deathmatch, maybe OnPlayerDeath
IsPlayerInDM[playerid] = false;