View Single Post
Author Message
alex2001
Member
Join Date: May 2019
Old 05-30-2019 , 05:50   Set user FLAG ROOT
Reply With Quote #1

hi i want to add ROOT flag if player steamid == "....."

i try with this

public Event_RoundStart(Handle:event, String:name[], bool:dontBroadcast) {
decl String:authid[64];
for (new i = 1; i <= MaxClients;i++){
GetClientAuthId(i,AuthId_Steam2, authid, 63);
if (StrEqual("STEAM_1:0:244123014",authid)){
PrintToChat(i, "GG");
SetUserFlagBits(i,FlagToBit(Admin_Root));
}
}
}

and another but dosent work
alex2001 is offline