left alt for robbery - 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: left alt for robbery (
/showthread.php?tid=369383)
left alt for robbery -
CROSS_Hunter - 16.08.2012
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
Re: left alt for robbery -
Gangster-rocks - 16.08.2012
You can use this
pawn Код:
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;
}
Re: left alt for robbery -
CROSS_Hunter - 16.08.2012
ok anyways i already made that but i thought there are other ideas