16.08.2012, 22:55
i want when player stands in a checkpoint and presses left alt he can rob the store normally instead of typing for example /rob or /robshop or /robstore
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(IsPlayerInRangeOfPoint(playerid,4.0,0,0,0))// Add here the checkpoint x,y,z cords
{
if(newkeys == KEY_WALK)//Thats for the left alt
{
//add Rob code here
}
}
return 1;
}