public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/salir", cmdtext, true, 10) == 0) { if(IsPlayerInRangeOfPoint(playerid, 3.0, 933.206359, 2150.355224, 1011.023437)) { SetPlayerPos(playerid, 2530.502197, -1664.375976, 15.166466); SetPlayerInterior(playerid, 0); } return 1; } if (strcmp("/entrar", cmdtext, true, 10) == 0) { if(IsPlayerInRangeOfPoint(playerid, 3.0, 2530.567871, -1664.283691, 15.166399)) { SetPlayerPos(playerid, 933.206359, 2150.355224, 1011.023437); SetPlayerInterior(playerid, 1); } return 1; } if (strcmp("/abrir1", cmdtext, true, 10) == 0) { if(IsPlayerInRangeOfPoint(playerid, 3.0, 960.474548, 2097.345703, 1011.022705)) { GivePlayerWeapon(playerid, 22, 50); SetPlayerSkin(playerid, 28); } return 1; } if (strcmp("/abrir2", cmdtext, true, 10) == 0) { if(IsPlayerInRangeOfPoint(playerid, 3.0, 960.474548, 2097.345703, 1011.022705)) { GivePlayerWeapon(playerid, 23, 50); SetPlayerSkin(playerid, 180); } return 1; } if (strcmp("/abrir3", cmdtext, true, 10) == 0) { if(IsPlayerInRangeOfPoint(playerid, 3.0, 960.474548, 2097.345703, 1011.022705)) { GivePlayerWeapon(playerid, 25, 50); SetPlayerSkin(playerid, 29); } return 1; } }
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/salir", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, 933.206359, 2150.355224, 1011.023437))
{
SetPlayerPos(playerid, 2530.502197, -1664.375976, 15.166466);
SetPlayerInterior(playerid, 0);
}
return 1;
}
else if (strcmp("/entrar", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, 2530.567871, -1664.283691, 15.166399))
{
SetPlayerPos(playerid, 933.206359, 2150.355224, 1011.023437);
SetPlayerInterior(playerid, 1);
}
return 1;
}
else if (strcmp("/abrir1", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, 960.474548, 2097.345703, 1011.022705))
{
GivePlayerWeapon(playerid, 22, 50);
SetPlayerSkin(playerid, 2;
}
return 1;
}
if (strcmp("/abrir2", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, 960.474548, 2097.345703, 1011.022705))
{
GivePlayerWeapon(playerid, 23, 50);
SetPlayerSkin(playerid, 180);
}
return 1;
}
else if (strcmp("/abrir3", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, 960.474548, 2097.345703, 1011.022705))
{
GivePlayerWeapon(playerid, 25, 50);
SetPlayerSkin(playerid, 29);
}
return 1;
}
}
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/salir", cmdtext, true, 10) == 0) { if(IsPlayerInRangeOfPoint(playerid, 3.0, 933.206359, 2150.355224, 1011.023437)) { SetPlayerPos(playerid, 2530.502197, -1664.375976, 15.166466); SetPlayerInterior(playerid, 0); } } else if (strcmp("/entrar", cmdtext, true, 10) == 0) { if(IsPlayerInRangeOfPoint(playerid, 3.0, 2530.567871, -1664.283691, 15.166399)) { SetPlayerPos(playerid, 933.206359, 2150.355224, 1011.023437); SetPlayerInterior(playerid, 1); } } else if (strcmp("/abrir1", cmdtext, true, 10) == 0) { if(IsPlayerInRangeOfPoint(playerid, 3.0, 960.474548, 2097.345703, 1011.022705)) { GivePlayerWeapon(playerid, 22, 50); SetPlayerSkin(playerid, 2; } } else if (strcmp("/abrir2", cmdtext, true, 10) == 0) { if(IsPlayerInRangeOfPoint(playerid, 3.0, 960.474548, 2097.345703, 1011.022705)) { GivePlayerWeapon(playerid, 23, 50); SetPlayerSkin(playerid, 180); } } else if (strcmp("/abrir3", cmdtext, true, 10) == 0) { if(IsPlayerInRangeOfPoint(playerid, 3.0, 960.474548, 2097.345703, 1011.022705)) { GivePlayerWeapon(playerid, 25, 50); SetPlayerSkin(playerid, 29); } } return 1; }
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/salir", cmdtext, true, 10) == 0) { if(IsPlayerInRangeOfPoint(playerid, 3.0, 933.206359, 2150.355224, 1011.023437)) { SetPlayerPos(playerid, 2530.502197, -1664.375976, 15.166466); SetPlayerInterior(playerid, 0); } return 1; } else if (strcmp("/entrar", cmdtext, true, 10) == 0) { if(IsPlayerInRangeOfPoint(playerid, 3.0, 2530.567871, -1664.283691, 15.166399)) { SetPlayerPos(playerid, 933.206359, 2150.355224, 1011.023437); SetPlayerInterior(playerid, 1); } return 1; } else if (strcmp("/abrir1", cmdtext, true, 10) == 0) { if(IsPlayerInRangeOfPoint(playerid, 3.0, 960.474548, 2097.345703, 1011.022705)) { GivePlayerWeapon(playerid, 22, 50); SetPlayerSkin(playerid, 28); } return 1; } else if (strcmp("/abrir2", cmdtext, true, 10) == 0) { if(IsPlayerInRangeOfPoint(playerid, 3.0, 960.474548, 2097.345703, 1011.022705)) { GivePlayerWeapon(playerid, 23, 50); SetPlayerSkin(playerid, 180); } return 1; } else if (strcmp("/abrir3", cmdtext, true, 10) == 0) { if(IsPlayerInRangeOfPoint(playerid, 3.0, 960.474548, 2097.345703, 1011.022705)) { GivePlayerWeapon(playerid, 25, 50); SetPlayerSkin(playerid, 29); } return 1; } return 0; }
Not working either :/ i noticed that the commands from filterscripts work, so i guess the problem is in the code i posted.
|
LOL worked now, gonna figure out which filterscript is giving problems, thank you!!
|