Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cmd(resveh1, playerid, params[]) // Komanda za resetiranje vozila ID 1 igracu. (online stats = NE)
- {
- new string[128];
- if(IsPlayerConnectedAndLoggedIn(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 1337) // Admin level 1337+.
- {
- if(AdminDuty[playerid] > 0)
- {
- new player;
- if(sscanf(params, "u", player))
- {
- SendClientMessage(playerid, COLOR_HELP, "KORISTENJE: /resveh1 [ID/DioImena]");
- return 1;
- }
- if(IsPlayerConnectedAndLoggedIn(player))
- {
- if(player != INVALID_PLAYER_ID)
- {
- PlayerInfo[player][pCarOne] = 999;
- format(string, sizeof(string), "INFO: Uspjesno ste resetirali vozilo ID [1] u statistikama online igracu %s.", PlayerName[player]);
- SendClientMessage(playerid, COLOR_RED, string);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_ERROR, "ERROR: Odabrani igrac nije online ili nije ulogiran u svoj korisnicki racun.");
- PlayerPlaySound(playerid, 1055, 0.0, 0.0, 0.0);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_ERROR, "ERROR: Morate biti na duznosti kako bi mogli koristiti admin komande / mogucnosti.");
- PlayerPlaySound(playerid, 1055, 0.0, 0.0, 0.0);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_ERROR, "ERROR: Niste autorizirani da koristite ovu komandu - nemate administrator level.");
- PlayerPlaySound(playerid, 1055, 0.0, 0.0, 0.0);
- }
- }
- return 1;
- }
- cmd(resveh2, playerid, params[]) // Komanda za resetiranje vozila ID 1 igracu. (online stats = NE)
- {
- new string[128];
- if(IsPlayerConnectedAndLoggedIn(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 1337) // Admin level 1337+.
- {
- if(AdminDuty[playerid] > 0)
- {
- new player;
- if(sscanf(params, "u", player))
- {
- SendClientMessage(playerid, COLOR_HELP, "KORISTENJE: /resveh2 [ID/DioImena]");
- return 1;
- }
- if(IsPlayerConnectedAndLoggedIn(player))
- {
- if(player != INVALID_PLAYER_ID)
- {
- PlayerInfo[player][pCarTwo] = 999;
- format(string, sizeof(string), "INFO: Uspjesno ste resetirali vozilo ID [2] u statistikama online igracu %s.", PlayerName[player]);
- SendClientMessage(playerid, COLOR_RED, string);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_ERROR, "ERROR: Odabrani igrac nije online ili nije ulogiran u svoj korisnicki racun.");
- PlayerPlaySound(playerid, 1055, 0.0, 0.0, 0.0);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_ERROR, "ERROR: Morate biti na duznosti kako bi mogli koristiti admin komande / mogucnosti.");
- PlayerPlaySound(playerid, 1055, 0.0, 0.0, 0.0);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_ERROR, "ERROR: Niste autorizirani da koristite ovu komandu - nemate administrator level.");
- PlayerPlaySound(playerid, 1055, 0.0, 0.0, 0.0);
- }
- }
- return 1;
- }
- cmd(resveh3, playerid, params[]) // Komanda za resetiranje vozila ID 1 igracu. (online stats = NE)
- {
- new string[128];
- if(IsPlayerConnectedAndLoggedIn(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 1337) // Admin level 1337+.
- {
- if(AdminDuty[playerid] > 0)
- {
- new player;
- if(sscanf(params, "u", player))
- {
- SendClientMessage(playerid, COLOR_HELP, "KORISTENJE: /resveh3 [ID/DioImena]");
- return 1;
- }
- if(IsPlayerConnectedAndLoggedIn(player))
- {
- if(player != INVALID_PLAYER_ID)
- {
- PlayerInfo[player][pCarThr] = 999;
- format(string, sizeof(string), "INFO: Uspjesno ste resetirali vozilo ID [3] u statistikama online igracu %s.", PlayerName[player]);
- SendClientMessage(playerid, COLOR_RED, string);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_ERROR, "ERROR: Odabrani igrac nije online ili nije ulogiran u svoj korisnicki racun.");
- PlayerPlaySound(playerid, 1055, 0.0, 0.0, 0.0);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_ERROR, "ERROR: Morate biti na duznosti kako bi mogli koristiti admin komande / mogucnosti.");
- PlayerPlaySound(playerid, 1055, 0.0, 0.0, 0.0);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_ERROR, "ERROR: Niste autorizirani da koristite ovu komandu - nemate administrator level.");
- PlayerPlaySound(playerid, 1055, 0.0, 0.0, 0.0);
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement