11.12.2013, 16:21
So i'm making a TeaBag system in my GM only its not working when i press C at a player dead body its doing nothing.
Here the script:
If someone seeing what i'm doing wrong and can help me thank you for that.
Here the script:
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (newkeys & KEY_CROUCH)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, DX[playerid], DY[playerid], DZ[playerid]) && pInfo[playerid][Teabag] == 1)
{
GivePlayerScore(playerid, 1);
pInfo[playerid][credits] += 1;
SendClientMessage(playerid, -1,"[TEABAG]: You received 1 Score + Credit for a teabagg");
}
return 1;
}