SA-MP Forums Archive
Novo modo de abrir o portao da DP - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: Novo modo de abrir o portao da DP (/showthread.php?tid=274381)



Novo modo de abrir o portao da DP - Victos_xd - 05.08.2011

Код:
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;
}



Re: Novo modo de abrir o portao da DP - Victos_xd - 05.08.2011

BY:EU
Victos_xd


Re: Novo modo de abrir o portao da DP - rene20 - 05.08.2011

Local errado - - '

local correto - http://forum.sa-mp.com/forumdisplay.php?f=56
Modo - Tutorial !

ai ve teu pm ae enviei um bag