HElp with names.
#3

Try:

pawn Код:
CMD:duty(playerid) {
    if(isnull(params))
        return SendClientMessage(playerid, -1, "Type /duty [on/off]");
       
    static
        playerName[MAX_PLAYER_NAME];

    if(!strcmp(params, "on", true)) {
        GetPlayerName(playerid, playerName, sizeof playerName);
        SetPVarString(playerid, "name", playerName);
        SetPlayerName(playerid, "WOLF");
        return 1;
    }
    if(!strcmp(params, "off", true)) {
        if(GetPVarType(playerid, "name")) {
            GetPVarString(playerid, "name", playerName, sizeof playerName);
            SetPlayerName(playerid, playerName);
            return 1;
        }
    }
    return 1;
}
Reply


Messages In This Thread
HElp with names. - by Dare Devil..... - 25.07.2012, 16:45
Re : HElp with names. - by lelemaster - 25.07.2012, 17:39
Re: HElp with names. - by Jason` - 25.07.2012, 18:01
Re: HElp with names. - by Dare Devil..... - 25.07.2012, 21:16
Re: HElp with names. - by Alexis1999 - 25.07.2012, 21:20

Forum Jump:


Users browsing this thread: 2 Guest(s)