goto cmds
#3

Do you get that message every time or only if you use the command when you're not an admin? If it's the latter, then try returning 1 rather than SendClientMessage. Then you code would look like this:


PHP код:
CMD:gotosf(playeridparams[])  
{  
    if(
PlayerInfo[playerid][pAdmin] < 2
    {      
SendClientMessage(playeridCOLOR_REDNOTADMIN);  
            return 
1;
     }
    else  
    {  
        
PlayerInfo[playerid][pInt] = 0;  
        
SetPlayerInterior(playerid0);  
           
SetPlayerPos(playerid, -2018.0339,145.6004,27.9839);  
           
SendClientMessage(playeridCOLOR_WHITE"You have been teleported to San Fierro!");  
    }  
    return 
1;  

Reply


Messages In This Thread
goto cmds - by Jaua10 - 10.06.2018, 23:42
Re: goto cmds - by DarkSkull - 11.06.2018, 00:24
Re: goto cmds - by Robin96 - 11.06.2018, 00:36
Re: goto cmds - by Jaua10 - 11.06.2018, 01:45
Re: goto cmds - by SyS - 11.06.2018, 02:19
Re: goto cmds - by Jaua10 - 11.06.2018, 02:43
Re: goto cmds - by Sew_Sumi - 11.06.2018, 03:12
Re: goto cmds - by Jaua10 - 19.06.2018, 06:11
Re: goto cmds - by DerickClark - 19.06.2018, 06:13
Re: goto cmds - by kovac - 19.06.2018, 12:57

Forum Jump:


Users browsing this thread: 3 Guest(s)