SHARE
TWEET

Untitled

a guest Aug 14th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CMD:dienstmarke(playerid, params[]) {
  2.     new pID,fname[50],rname[35],frakid = Spieler[playerid][pFraktion];
  3.     if(!gPlayerLogged[playerid]) return SendClientMessage(playerid, COLOR_RED, "Du bist nicht eingeloggt!");
  4.     if(!IsPlayerExecutive(playerid))return SendClientMessage(playerid, COLOR_RED, "Du bist kein Staatsbeamter!");
  5.     if(sscanf(params, "u", pID))return SendClientMessage(playerid, COLOR_BLUE, INFO_STRING"/Dienstmarke [SpielerID/Name]");
  6.     if(!IsPlayerConnected(pID))return SendClientMessage(playerid, COLOR_RED, "Der Spieler ist nicht online.");
  7.     if(!IsPlayerInRangeOfPlayer(playerid, pID, 5.0))return SendClientMessage(playerid, COLOR_RED, "Der Spieler ist nicht in deiner Umgebung.");
  8.     ExekutiveDMID(frakid, fname); // <== Only for /Dienstmarke
  9.     ReturnPlayerRank(playerid, rname);
  10.     SendClientMessage(pID, COLOR_YELLOW, "===========================================");
  11.     SCMFormatted(pID, COLOR_BLUE, "Offizielle Dienstmarke %s",fname);
  12.     SCMFormatted(pID, COLOR_BLUE, "Besitzer: {FFFFFF}%s %s",rname,GetName(playerid));
  13.     SendClientMessage(pID, COLOR_YELLOW, "===========================================");
  14.     return 1;
  15. }
  16.  
  17. stock ExekutiveDMID(frakid, frak[50]) { // Use it only for /Dienstmarke
  18.     if(frakid == 0)frak ="Zivilist";
  19.     else if(frakid == 1)frak ="vom Los Santos Police Department";
  20.     else if(frakid == 2)frak ="vom FBI";
  21.     else if(frakid == 5)frak ="vom Ordnungsamt";
  22.     else if(frakid == 9)frak ="der Regierung";
  23.     else if(frakid == 16)frak ="vom Las Venturas Police Department";
  24.     else if(frakid == 18)frak ="der Bundeswehr";
  25.     return frak;
  26. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top