View difference between Paste ID: uRg5kiCg and SFd3qmVm
SHOW: | | - or go back to the newest paste.
1-
if(!strcmp(cmdtext, "/dkred", true))
1+
	if(!strcmp(cmdtext, "/dkred", true, 6))
2
	{
3
4-
 	if( playerDB[ playerid ][ adminlvl ] > 1 )
4+
5
 	if( playerDB[ playerid ][ adminlvl ] > 0 )
6-
    	if(!sscanf(cmdtext, "ui", giveplayerid, MoneysCount))
6+
7
    		if( ! sscanf(cmdtext, "ui", giveplayerid, MoneysCount))
8
		{		
9
		    if(giveplayerid != INVALID_PLAYER_ID)
10
		    {
11
		        if(GetPlayerScore(playerid) < 1500)
12
		        {
13
		            return SendClientMessage(playerid, -1, ""#COL_ERROR"[KLAIDA]: {F2F2F2}Turite per mazai patirties!");
14
		        }
15-
                new String[128];
15+
16-
                format(String, sizeof(String), ""#COL_GREEN"Davėte žaidėjui {AEB404}%s "#COL_GREEN"kreditų {AEB404}%i", PlayerName(giveplayerid), MoneysCount);
16+
                	new String[128];
17-
				SendClientMessage(playerid, -1, String);
17+
                	format(String, sizeof(String), ""#COL_GREEN"Davėte žaidėjui {AEB404}%s "#COL_GREEN"kreditų {AEB404}%i",\ 			 
18
			PlayerName(giveplayerid), MoneysCount);
19-
				format(String, sizeof(String), ""#COL_GREEN"Žaidėjas {AEB404}%s "#COL_GREEN"kreditų {AEB404}%iLT", PlayerName(playerid), MoneysCount);
19+
20-
				SendClientMessage(giveplayerid, -1, String);
20+
			SendClientMessage(playerid, -1, String);
21-
                playerDB[giveplayerid][kreditai] += MoneysCount;
21+
22
			format(String, sizeof(String), ""#COL_GREEN"Žaidėjas {AEB404}%s "#COL_GREEN"kreditų {AEB404}%iLT",\
23
 			PlayerName(playerid), MoneysCount);
24
25
			SendClientMessage(giveplayerid, -1, String);
26
27
                	playerDB[giveplayerid][kreditai] += MoneysCount;
28
			}
29
			else
30
			{
31
			    SendClientMessage(playerid, -1, ""#COL_ERROR"( KLAIDA ): Žaidejas neprisijunges.");
32
			}
33
		}
34-
    else
34+
35-
    {
35+
36-
        OnPlayerCommandText(playerid, "UnknownCommand");
36+
37-
    }
37+
38
		}
39
	}
40
    	else
41
    	{
42
        	OnPlayerCommandText(playerid, "UnknownCommand");
43
    	}
44
	return 1;
45
}