[pawn]CMD:makevip(playerid, params[]) { new pID, value; if(LevelVIP[playerid] < 1) return SendClientMessage(playerid, 0xD80ABFF, NOADMIN); else if (sscanf(params, "ui", pID, value)) return SendClientMessage(playerid, 0xD80ABFF, "FOLOSESTE: /makeavip <idPlayer> <nivel>"); else if (value < 0 || value > 5) return SendClientMessage(playerid, 0xFF0000AA, "[sERVER]: Nivel Necunoscut! Doar de la 1 la 5"); else if(pID == INVALID_PLAYER_ID) return SCM(playerid, 0xD80ABFF,"[sERVER]: ID Player Indisponibil!"); else { new pName[MAX_PLAYER_NAME], tName[MAX_PLAYER_NAME], string[128]; GetPlayerName(playerid, pName, MAX_PLAYER_NAME); GetPlayerName(pID, tName, MAX_PLAYER_NAME); format(string, sizeof(string), "%s ai fost promovat la nivelul %i de VIP", tName, value); SCM(playerid, 0xD80ABFF, string); format(string, sizeof(string), "Felicitari, ai primit nivelul %i de VIP de la %s", value, pName); SCM(pID, 0xD80ABFF, string); LevelVIP[playerid] = value; } return 1; } [/pawn]