05.08.2011, 17:43
Код:
public OnGameModeInit() { //maquininha da DP CreateObject(2922, 246.208984375, 72.328125, 1005.3997802734, 0, 0, 0); CreateObject(2922, 247.82554626465, 72.33472442627, 1004.1120605469, 0, 0, 180); CreateObject(2922, 245.1796875, 72.890625, 1003.9756469727, 0, 0, 0); CreateObject(2922, 250.40625, 64.659118652344, 1004.0599975586, 0, 0, 99); CreateObject(2922, 247.88352966309, 77.055191040039, 1004.1102905273, 0, 0, 91); return 1; } public OnPlayerKeyStateChange(playerid,newkeys,oldkeys) { if ((newkeys==KEY_SECONDARY_ATTACK)) { if(IsPlayerInRangeOfPoint(playerid, 1.0, 247.005905 , 72.448440 , 1003.640625)) { OnPlayerCommandText(playerid,"/pp"); } } if ((newkeys==KEY_SECONDARY_ATTACK)) { if(IsPlayerInRangeOfPoint(playerid, 5.0, 248.142105 , 78.125961 , 1003.640625)) { OnPlayerCommandText(playerid,"/pv"); } } if ((newkeys==KEY_SECONDARY_ATTACK)) { if(IsPlayerInRangeOfPoint(playerid, 5.0, 250.774871 , 60.822799 , 1003.640625)) { OnPlayerCommandText(playerid,"/pr"); } } return 1; }