Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(!strcmp(cmdtext, "/dkred", true, 6))
- {
- new giveplayerid, MoneysCount;
- if( playerDB[ playerid ][ adminlvl ] > 0 )
- {
- if( ! sscanf(cmdtext, "ui", giveplayerid, MoneysCount))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(GetPlayerScore(playerid) < 1500)
- {
- return SendClientMessage(playerid, -1, ""#COL_ERROR"[KLAIDA]: {F2F2F2}Turite per mazai patirties!");
- }
- new String[128];
- format(String, sizeof(String), ""#COL_GREEN"Davėte žaidėjui {AEB404}%s "#COL_GREEN"kreditų {AEB404}%i",\
- PlayerName(giveplayerid), MoneysCount);
- SendClientMessage(playerid, -1, String);
- format(String, sizeof(String), ""#COL_GREEN"Žaidėjas {AEB404}%s "#COL_GREEN"kreditų {AEB404}%iLT",\
- PlayerName(playerid), MoneysCount);
- SendClientMessage(giveplayerid, -1, String);
- playerDB[giveplayerid][kreditai] += MoneysCount;
- }
- else
- {
- SendClientMessage(playerid, -1, ""#COL_ERROR"( KLAIDA ): Žaidejas neprisijunges.");
- }
- }
- else
- {
- SendClientMessage(playerid, -1, "{F2F2F2}Naudojimas: "#COL_CMD"/duotikrd [zaidejo Vardas/zaidejo ID] [Kreditai]");
- SendClientMessage(playerid, -1, "{F2F2F2}Funkcija: "#COL_RULE"Duosite zaidejui kreditų.");
- }
- }
- else
- {
- OnPlayerCommandText(playerid, "UnknownCommand");
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment