[Help] GetPlayerName problems
#2

pawn Код:
CMD:me(playerid, params[])
{
     if(isnull(params)) return SendClientMessage(playerid, COLOR_NEWBIE, "SYNTAX: /me [action]");
     new textv2[128];
     format(textv2, 128, "* %s %s", RPname(playerid), params);
     NearMessageSender(playerid, 6.0, textv2, COLOR_FADE1,COLOR_FADE1,COLOR_FADE1,COLOR_FADE1,COLOR_FADE1);
     return 1;
}
CMD:do(playerid, params[])
{
     if(isnull(params)) return SendClientMessage(playerid, COLOR_NEWBIE, "SYNTAX: /do [action]");
     new textv2[128];
     format(textv2, 128, "* %s (( %s ))", params, RPname(playerid));
     NearMessageSender(playerid, 6.0, textv2, COLOR_FADE1,COLOR_FADE1,COLOR_FADE1,COLOR_FADE1,COLOR_FADE1);
     return 1;
}
stock RPname(playerid)
{
    new Name[MAX_PLAYER_NAME], i = -1;
    GetPlayerName( playerid, Name, MAX_PLAYER_NAME );
    while( Name[ ++i ] )
    if(Name[i] == '_')
    Name[i] = ' ';
    return Name;
}
Reply


Messages In This Thread
[Help] GetPlayerName problems - by BornHuman - 17.11.2013, 15:16
Re: [Help] GetPlayerName problems - by erminpr0 - 17.11.2013, 15:32

Forum Jump:


Users browsing this thread: 1 Guest(s)