30.11.2014, 16:28
Hello. So, I made a VIP System, and I started with: /MakeVip [/FaVip in romanian].
But In-Game, only says: "Unknow Command". Tried with Grand Larceny GM, filescript it's loading, no errors, I'm logged as RCON, but doesn't work.
+ Rep for helper.
pawn Код:
CMD:favip(playerid, params[])
{
new ID;
new Level;
new string[128];
new name[MAX_PLAYER_NAME];
new pname[MAX_PLAYER_NAME];
if(IsPlayerAdmin(playerid))
{
if(sscanf(params,"ui", ID, Level)) return SendClientMessage(playerid, COLOR_LIGHTBLUE,"Folosire: {FFCC33}/FaVip [ID] [Nivel Vip]");
if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, COLOR_LIGHTBLUE, "Jucatorul nu este conectat!");
if(Level > 1) return SendClientMessage(playerid, COLOR_LIGHTBLUE, "Nivel gresit. [1-2]");
GetPlayerName(playerid, name, sizeof(name));
GetPlayerName(ID, pname, sizeof(pname));
VipInfo[ID][Vip] = Level;
format(string, sizeof(string), "{FFCC33}Ai primit {FF0000}VIP {FFCC33}de nivel: {FF0000}%s {FFCC33}de la Admin-ul: {FF0000}%s {FFCC33}!", Level, name);
SendClientMessage(ID, -1, string);
format(string, sizeof(string), "{FFCC33}L-ai facut pe {FF0000}%s {FFCC33}VIP de nivel: {FF0000}%s {FFCC33}!", pname, Level);
SendClientMessage(playerid, -1, string);
}
else
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Nu esti RCON!");
}
return 1;
}
pawn Код:
enum vInfo
{
Vip
}
new VipInfo[MAX_PLAYERS][vInfo];
But In-Game, only says: "Unknow Command". Tried with Grand Larceny GM, filescript it's loading, no errors, I'm logged as RCON, but doesn't work.
+ Rep for helper.