[POMOC]OnPlayerKeyStateChange

Započeo ., Oktobar 17, 2011, 19:16:47 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

.

*

Skripta koju koristim: GF Edit
Detaljan opis problema: Neradi mi ulaz u zgrade na tipku enter
Dio skripte:
public OnPlayerKeyStateChange(playerid,newkeys,oldkeys)
{
if (newkeys == KEY_FIRE && GetPlayerWeapon(playerid) == 41)
{
SetTimerEx("OnPlayerSpray",5000,0,"d",playerid);
}
if( newkeys == KEY_SECONDARY_ATTACK )
{
if(PlayerInfo[playerid][pMember] == 5)
{
   if(IsPlayerInRangeOfPoint(playerid, 3.0, 1122.7064,-2036.8217,69.8943))
   {
   SetPlayerPos(playerid, 2324.419921,-1145.568359,1050.710083);
   SetPlayerInterior(playerid, 12);
   }
   }
if(PlayerInfo[playerid][pMember] == 5)
{
   if(IsPlayerInRangeOfPoint(playerid, 3.0, 2324.419921,-1145.568359,1050.710083))
   {
   SetPlayerPos(playerid, 1122.7064,-2036.8217,69.8943);
   SetPlayerInterior(playerid, 0);
   }
   }
if(PlayerInfo[playerid][pMember] == 10)
{
   if(IsPlayerInRangeOfPoint(playerid, 3.0, 1259.5946,-785.4330,92.0313))
   {
   SetPlayerPos(playerid, -2170.4924,635.7310,1052.3750);
   SetPlayerInterior(playerid, 1);
   }
   }
if(PlayerInfo[playerid][pMember] == 10)
{
   if(IsPlayerInRangeOfPoint(playerid, 3.0, -2170.4924,635.7310,1052.3750))
   {
   SetPlayerPos(playerid, 1259.5946,-785.4330,92.0313);
   SetPlayerInterior(playerid, 0);
   }
   }
if(PlayerInfo[playerid][pMember] == 2)
{
   if(IsPlayerInRangeOfPoint(playerid, 3.0, 2480.8813,-1536.6969,24.1888))
   {
   SetPlayerPos(playerid, -2159.122802,641.517517,1052.381713);
   SetPlayerInterior(playerid, 1);
   }
   }
if(PlayerInfo[playerid][pMember] == 2)
{
   if(IsPlayerInRangeOfPoint(playerid, 3.0, -2159.122802,641.517517,1052.381713))
   {
   SetPlayerPos(playerid, 2480.8813,-1536.6969,24.1888);
   SetPlayerInterior(playerid, 0);
   }
   }
if(PlayerInfo[playerid][pMember] == 4)
{
   if(IsPlayerInRangeOfPoint(playerid, 3.0, 2232.6113,-1159.8533,25.8906))
   {
   SetPlayerPos(playerid, 318.564971,1118.209960,1083.882812);
   SetPlayerInterior(playerid, 5);
   }
   }
if(PlayerInfo[playerid][pMember] == 4)
{
   if(IsPlayerInRangeOfPoint(playerid, 3.0, 318.564971,1118.209960,1083.882812))
   {
   SetPlayerPos(playerid, 2232.6113,-1159.8533,25.8906);
   SetPlayerInterior(playerid, 0);
   }
   }
if(PlayerInfo[playerid][pMember] == 6)
{
   if(IsPlayerInRangeOfPoint(playerid, 3.0, 2495.3423,-1690.9650,14.7656))
   {
   SetPlayerPos(playerid, 2496.049804,-1695.238159,1014.742187);
   SetPlayerInterior(playerid, 3);
   }
   }
if(PlayerInfo[playerid][pMember] == 6)
{
   if(IsPlayerInRangeOfPoint(playerid, 3.0, 2496.049804,-1695.238159,1014.742187))
   {
   SetPlayerPos(playerid, 2495.3423,-1690.9650,14.7656);
   SetPlayerInterior(playerid, 0);
   }
   }
if(PlayerInfo[playerid][pMember] == 1)
{
   if(IsPlayerInRangeOfPoint(playerid, 3.0, 246.5639,87.5329,1003.6406))
   {
   SetPlayerPos(playerid, 1565.2311,-1666.9904,28.3956);
   SetPlayerInterior(playerid, 0);
   }
   }
if(PlayerInfo[playerid][pMember] == 1)
{
   if(IsPlayerInRangeOfPoint(playerid, 3.0, 1565.2311,-1666.9904,28.3956))
   {
   SetPlayerPos(playerid, 246.5639,87.5329,1003.6406);
   SetPlayerInterior(playerid, 6);
   }
   }
if(PlayerInfo[playerid][pMember] == 8 )
{
   if(IsPlayerInRangeOfPoint(playerid, 3.0, 1059.8270,-345.4436,73.9922))
   {
   SetPlayerPos(playerid, 2807.619873,-1171.899902,1025.570312);
   SetPlayerInterior(playerid, 8 );
   }
   }
if(PlayerInfo[playerid][pMember] == 8 )
{
   if(IsPlayerInRangeOfPoint(playerid, 3.0, 2807.619873,-1171.899902,1025.570312))
   {
   SetPlayerPos(playerid, 1059.8270,-345.4436,73.9922);
   SetPlayerInterior(playerid, 0);
   }
   }
if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pGameMaster] >= 1)
{
   if(IsPlayerInRangeOfPoint(playerid, 3.0, 1625.9612,16296.2285,2.1092))
   {
   SetPlayerPos(playerid, 2215.454833,-1147.475585,1025.796875);
   SetPlayerInterior(playerid, 15);
   }
   }
if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pGameMaster] >= 1)
{
   if(IsPlayerInRangeOfPoint(playerid, 3.0, 2215.454833,-1147.475585,1025.796875))
   {
   SetPlayerPos(playerid, 1625.9612,16296.2285,2.1092);
   SetPlayerInterior(playerid, 0);
   }
   }
   if(IsPlayerInRangeOfPoint(playerid, 3.0, 1555.4912,-1675.6364,16.1953))
   {
   SetPlayerPos(playerid, 246.7840,63.9005,1003.6406);
   SetPlayerInterior(playerid, 6);
   }
   if(IsPlayerInRangeOfPoint(playerid, 3.0, 246.7840,63.9005,1003.6406))
   {
   SetPlayerPos(playerid, 1555.4912,-1675.6364,16.1953);
   SetPlayerInterior(playerid, 0);
   }
   return 1;
   }
return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno):
Poslednja Izmena: Oktobar 17, 2011, 19:18:39 POSLE PODNE od !вe!lυcaѕ™