6 Errors (+REP)
#5

Code:
"CMD:changename"(playerid, params[])
{
	if(AccInfo[playerid][pVip] > 2)
	{
	    new NpName[MAX_PLAYER_NAME], stringf[128];
	    //----------------------------------------------------------------------
	    if(sscanf(params, "s[24]", NpName)) return
		SendClientMessage(playerid, orange, "Usage: /cmyname [New Nickname]");
		//----------------------------------------------------------------------
	    else
	    {
	        SetPlayerName(playerid, NpName);
	        format(stringf, sizeof(stringf), "You have Successfully Changed your nickname to {11FF00}%s!", NpName);
	        SendClientMessage(playerid, orange, stringf);
	        return OnPlayerConnect(playerid);
	    }
    }
    else return SendClientMessage(playerid, red, "ERROR: You must be VIP Level 2 to use this command!");
}
Reply


Messages In This Thread
6 Errors (+REP) - by Spartaaaaa - 14.05.2014, 14:49
Re: 6 Errors (+REP) - by daemon3304 - 14.05.2014, 14:57
Re: 6 Errors (+REP) - by nilanjay - 14.05.2014, 15:41
Re: 6 Errors (+REP) - by Spartaaaaa - 14.05.2014, 15:43
Re: 6 Errors (+REP) - by Salman1700 - 14.05.2014, 16:51
Re: 6 Errors (+REP) - by Spartaaaaa - 14.05.2014, 17:07
AW: 6 Errors (+REP) - by Macronix - 14.05.2014, 17:26
Re: 6 Errors (+REP) - by Spartaaaaa - 15.05.2014, 09:52
Re : 6 Errors (+REP) - by yusei - 15.05.2014, 10:23
Re: 6 Errors (+REP) - by Spartaaaaa - 15.05.2014, 10:39

Forum Jump:


Users browsing this thread: 1 Guest(s)