Commands error
#7

Try this out

pawn Код:
CMD:me(playerid, params[])
{
    if(!LoggedIn[playerid])
    {
        return SendClientMessage(playerid, -1, "You must be logged in to use this command");
    }
    if(isnull(params))
    {
        return SendClientMessage(playerid, COLOR_RED, "USE:: /me [action]");
    }
    else
    {
        new string[128];
        format(string, sizeof(string), "* %s %s", NameRP(playerid), params);
        SendLocalMessage(playerid, COLOR_EMOTE, string);
    }
    return 1;
}
If it still doesn't work try out Pawn.CMD
Reply


Messages In This Thread
Commands error - by andrey1311 - 21.11.2018, 14:40
Re: Commands error - by FedeA - 21.11.2018, 15:32
Re: Commands error - by andrey1311 - 21.11.2018, 15:40
Re: Commands error - by SeeNN - 21.11.2018, 16:21
Re: Commands error - by FedeA - 21.11.2018, 16:39
Re: Commands error - by andrey1311 - 21.11.2018, 17:25
Re: Commands error - by d3Pedro - 21.11.2018, 18:24

Forum Jump:


Users browsing this thread: 1 Guest(s)