Help please
#1

I decided to try a new Gamemode after i started the server and went into it it worked perfectly

then i tried some commands like /setlevel / givemoney etc, it said (Usage /setlevel Id amount then i tried again it gave it always to the player whos id was 0 even though if i tried to give to guy (id 5) /setlevel 5 1 it gave it to id 0 can any1 help me to fix?
Reply
#2

Show us the code, please
Reply
#3

my gamemode?
Reply
#4

update your plugins
Reply
#5

The /setlevel and /givemoney commands
Reply
#6

u mean the gamemode?
Reply
#7

Yes, the commands from your GameMode.
Reply
#8

where do i find them?
Reply
#9

dcmd(setlevel,8,cmdtext);

Код:
dcmd_setlevel(playerid,params[])
{
	new id,lvl,string[128];
	if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,red,error);
	if(sscanf(params,"ui",id,lvl)) return SendClientMessage(playerid,green2,"USAGE: "lyellow2"/setlevel <id> <level>");
	if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid,red,notconnected);
	format(string,sizeof(string),"*** %s(ID:%d) has set your admin level to %d!",GetPName(playerid),playerid,lvl);
	SendClientMessage(id,green,string);
	if(PInfo[id][Level] < lvl)
	{
	    GameTextForPlayer(id,"~g~~h~~h~Promoted!",4000,3);
	    PlaySound(id,1057);
	}
	if(PInfo[id][Level] > lvl)
	{
	    GameTextForPlayer(id,"~r~~h~Demoted!",4000,3);
	    PlaySound(playerid,1085);
	}
	format(string,sizeof(string),"*** You've set %s(ID:%d)'s level to %d!",GetPName(id),id,lvl);
	SendClientMessage(playerid,green,string);
	PInfo[id][Level] = lvl;
	return 1;
Reply
#10

Its Remember me SAN FIERRO COPS AND ROBBERS
Where is the Same Problem
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)