14.05.2014, 16:51
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!"); }