Setlevel command working just for me
#1

If i setvlevel to myself, it is showing correct, if i setvlevel to someone that is not me, it's showing,VIP level set to 0.....


Код:
CMD:setvlevel(playerid, params[])
{
	if(!IsPlayerAdmin(playerid)) return SCM(playerid,COLOR_ERROR,"Error: You must be logged in as RCON!");
	new string[128], userid;
	if(sscanf(params, "ui", userid, PlayerInfo[userid][pVIP])) return SCM(playerid,COLOR_GREY,"Usage: /setvlevel [UserID] [Level]");
	if(userid == INVALID_PLAYER_ID) return SCM(playerid,COLOR_ERROR,"Error: Player is not connected!");
	format(string, sizeof(string), "Admin %s has set your VIP LEVEL to %i", GetName(playerid), PlayerInfo[userid][pVIP]);
	SCM(userid,COLOR_ORANGERED,string);
	format(string, sizeof(string), "You've set %s VIP LEVEL to %i", GetName(userid), PlayerInfo[userid][pVIP]);
	SCM(playerid,COLOR_ORANGERED,string);
	PlayerPlaySound(playerid,1137,0.0,0.0,0.0);
	PlayerPlaySound(userid,1137,0.0,0.0,0.0);
	return 1;
}
Reply


Messages In This Thread
Setlevel command working just for me - by Fabyx15 - 11.07.2018, 10:29
Re: Setlevel command working just for me - by Stev - 11.07.2018, 10:33
Re: Setlevel command working just for me - by Fabyx15 - 11.07.2018, 10:33
Re: Setlevel command working just for me - by Florin48 - 11.07.2018, 10:42
Re: Setlevel command working just for me - by Fabyx15 - 11.07.2018, 10:55
Re: Setlevel command working just for me - by Fabyx15 - 11.07.2018, 11:12

Forum Jump:


Users browsing this thread: 1 Guest(s)