08.02.2013, 10:00
I used this kind of code.
I tried it ingame, didn't work!
Please do help.
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if ((newkeys & KEY_FIRE) && !(oldkeys & KEY_FIRE))
{
new Float:x, Float:y, Float:z;
GetPlayerCameraPos(playerid,x, y, z);
if( (x<392 || x>358) && (y>152 || y<182) ) //Checking for the textdraw area
{
SendClientMessage(playerid, -1, "Done."); //For testing
}
}
return 1;
}
Please do help.