Commands not working
#2

try this:

PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
if (
strcmp("/salir"cmdtexttrue10) == 0)
{
if(
IsPlayerInRangeOfPoint(playerid3.0933.2063592150.3552241011.023437))
{
SetPlayerPos(playerid2530.502197, -1664.37597615.166466);
SetPlayerInterior(playerid0);
}
return 
1;
}
else if (
strcmp("/entrar"cmdtexttrue10) == 0)
{
if(
IsPlayerInRangeOfPoint(playerid3.02530.567871, -1664.28369115.166399))
{
SetPlayerPos(playerid933.2063592150.3552241011.023437);
SetPlayerInterior(playerid1);
}
return 
1;
}
else if (
strcmp("/abrir1"cmdtexttrue10) == 0)
{
if(
IsPlayerInRangeOfPoint(playerid3.0960.4745482097.3457031011.022705))
{
GivePlayerWeapon(playerid2250);
SetPlayerSkin(playerid2;
}
return 
1;
}
if (
strcmp("/abrir2"cmdtexttrue10) == 0)
{
if(
IsPlayerInRangeOfPoint(playerid3.0960.4745482097.3457031011.022705))
{
GivePlayerWeapon(playerid2350);
SetPlayerSkin(playerid180);
}
return 
1;
}
else if (
strcmp("/abrir3"cmdtexttrue10) == 0)
{
if(
IsPlayerInRangeOfPoint(playerid3.0960.4745482097.3457031011.022705))
{
GivePlayerWeapon(playerid2550);
SetPlayerSkin(playerid29);
}
return 
1;
}

Reply


Messages In This Thread
Commands not working - by aalbero99 - 10.07.2015, 14:10
Re: Commands not working - by Mouiz - 10.07.2015, 14:13
Respuesta: Commands not working - by aalbero99 - 10.07.2015, 14:20
Re: Commands not working - by Mouiz - 10.07.2015, 14:24
Respuesta: Commands not working - by aalbero99 - 10.07.2015, 14:30
Re: Commands not working - by notime - 10.07.2015, 14:53
Respuesta: Commands not working - by aalbero99 - 10.07.2015, 15:02
Re: Respuesta: Commands not working - by notime - 10.07.2015, 15:12
Respuesta: Commands not working - by aalbero99 - 10.07.2015, 15:16
Re: Respuesta: Commands not working - by notime - 10.07.2015, 15:18

Forum Jump:


Users browsing this thread: 1 Guest(s)