10.07.2015, 14:10
Hey, I have a problem, my server's commands don't work at all, they worked earlier but I change something and I don't remember how to make them work again >.< here's the code:
Код:
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;
}
}


