Jump to content

Question

Posted

Am o comanda /highlight id. E o comanda pentru Vips. Cand o activez culorile de la nume sunt rosii/galbene pe rand..

Comanda este doar pentru Vips si vreau s-o fac si pentru Admini.

Cum fac sa fie si pentru admini ?

Aici comanda:

dcmd_highlight(playerid,params[])

{

#pragma unused params

if(IsPlayerVipMember(playerid))

{

    if(!strlen(params)) return

SendClientMessage(playerid, LIGHTBLUE2, "Usage: /highlight [PlayerID]") &&

SendClientMessage(playerid, orange, "Function: Will Highlight the specified player! (Blinking)");

    new player1;

new playername[MAX_PLAYER_NAME];

new string[128];

    player1 = strval(params);

if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID)

{

GetPlayerName(player1, playername, sizeof(playername));

    if(AccInfo[player1][blip] == 0) {

AccInfo[player1][pColour] = GetPlayerColor(player1);

AccInfo[player1][blip] = 1;

BlipTimer[player1] = SetTimerEx("HighLight", 1000, 1, "i", player1);

format(string,sizeof(string),"|- You have Highlighted %s's marker -|", playername);

}

else

{

KillTimer( BlipTimer[player1]);

AccInfo[player1][blip] = 0;

SetPlayerColor(player1, AccInfo[player1][pColour]);

format(string,sizeof(string),"|- You have Stopped Highlighting %s's marker -|", playername);

}

return SendClientMessage(playerid,yellow,string);

}

else return ErrorMessages(playerid, 2);

}

else return ErrorMessages(playerid, 1);

}

www.youtube.com/thebwgg

2 answers to this question

Recommended Posts

Posted

in loc de  if(IsPlayerVipMember(playerid)) poti sa pui  if(IsPlayerAdmin(playerid)) ( daca esti logat cu /rcon login pass ) sauu pui tu ce variabila ai ! if(PlayerInfo[playerid][pAdmin] >= x) sau cum ai tu .. :)

Cred k este vorba mai mult  de un FS, de obicei modurile GF nu se fac cu VIP, acuma nu stiu sigur. Poate sa aiba si IsPlayerAdminMember mai bine sa ne posteze o cumanda de admin

 

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.