Jump to content
  • 0

admin skin


DNG

Question

6 answers to this question

Recommended Posts

la OnPlayerUpdate pui:

if(!IsPlayerAdmin(playerid) && GetPlayerSkin(playerid) == id_skin_admin) 
{ 
   SendClientMessage(playerid,culoare,"Numai adminii pot avea acest skin");
   SetPlayerSkin(playerid, 0);
}
IsPlayerAdmin(playerid) inlocuiesti cu functia ta pentru admini, de exemplu pentru ladmin:
if(PlayerInfo[playerid][Level] == 0)
si va deveni
if( !(PlayerInfo[playerid][Level] == 0) && (GetPlayerSkin(playerid) == id_skin_admin) ) 
{ 
   SendClientMessage(playerid,culoare,"Numai adminii pot avea acest skin!");
   SetPlayerSkin(playerid, 0);
}

id_skin_admin - inlocuiesti cu ce id skin pentru admin vrei

culoare - inlocuiesti cu ce culoare vrei tu

Link to comment
Share on other sites

Nu mai folositi OnPlayerUpdate pt fiecare prostie.

Poti sa faci, daca vrei ca admini sa aibe skinul asta mereu, la OnPlayerSpawn:

if( admin (ce ai tu pt admin ) ) SetPlayerSkin(playerid, IDul la Skin);

Sau cum a sugerat Laz, la OnPlayerRequestClass, faci o clasa pt ei.

-Toate tutorialele postate intra aici sau puneti-le direct [url=http://www.sa-mp.ro/forum/index

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.