01.01.2013, 15:46
Need help and I want to make my Donor Rank up to level 5
that is my setdonator code thanks .I have up to rank 3 but i need
up to rank 5 can anyone post the codes please by seeing my up ones.
CMD : setdonator(playerid,params[]) {
if(PlayerInfo[playerid][Level] >= 6) {
new tmp[256], tmp2[256], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index);
if(isnull(tmp) || isnull(tmp2) || !IsNumeric2(tmp2)) return SendClientMessage(playerid, red, "USAGE: /setvip [playerid] [Level] | Note : Max Levels = 3 |");
new player1 = strval(tmp), skin = strval(tmp2), string[128];
if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID) {
CMDMessageToAdmins(playerid,"SETVIP");
format(string, sizeof(string), "You have set \"%s's\" VIP Level to '%d", pName(player1), skin); SendClientMessage(playerid,blue,string);
if(player1 != playerid) { format(string,sizeof(string),"Administrator \"%s\" has set your VIP Level to '%d'", pName(playerid), skin); SendClientMessage(player1,blue,string); }
return PlayerInfo[player1][dRank] = skin;
} else return SendClientMessage(playerid,red,"ERROR: Player is not connected");
} else return SendClientMessage(playerid,red,"ERROR: You are not a high enough level to use this command");
}
enum PlayerData
{
dRank
};
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
dUserSetINT(PlayerName2(playerid)).("dRank",0);
return 1;
}
// Give the [PHP] Tag over this code.
that is my setdonator code thanks .I have up to rank 3 but i need
up to rank 5 can anyone post the codes please by seeing my up ones.
CMD : setdonator(playerid,params[]) {
if(PlayerInfo[playerid][Level] >= 6) {
new tmp[256], tmp2[256], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index);
if(isnull(tmp) || isnull(tmp2) || !IsNumeric2(tmp2)) return SendClientMessage(playerid, red, "USAGE: /setvip [playerid] [Level] | Note : Max Levels = 3 |");
new player1 = strval(tmp), skin = strval(tmp2), string[128];
if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID) {
CMDMessageToAdmins(playerid,"SETVIP");
format(string, sizeof(string), "You have set \"%s's\" VIP Level to '%d", pName(player1), skin); SendClientMessage(playerid,blue,string);
if(player1 != playerid) { format(string,sizeof(string),"Administrator \"%s\" has set your VIP Level to '%d'", pName(playerid), skin); SendClientMessage(player1,blue,string); }
return PlayerInfo[player1][dRank] = skin;
} else return SendClientMessage(playerid,red,"ERROR: Player is not connected");
} else return SendClientMessage(playerid,red,"ERROR: You are not a high enough level to use this command");
}
enum PlayerData
{
dRank
};
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
dUserSetINT(PlayerName2(playerid)).("dRank",0);
return 1;
}
// Give the [PHP] Tag over this code.