Guest User

Untitled

a guest
Feb 18th, 2018
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. ocmd:invite(playerid,params[])
  2. {
  3. if(!Rang(playerid,3))return SendClientMessage(playerid,ROT,"Server: Du bist Kein Leader");
  4. new pID,string[128];
  5. if(sscanf(params,"us",pID))return SendClientMessage(playerid,BLAU,"/invite [id] [Grund]");
  6. format(string,sizeof(string),"Server: %s wurde in Die Fraktion Invitet von %s Grund:",SpielerName(pID),SpielerName(playerid),string);
  7. if(GetPVarInt(playerid,"Fraktion")==1)
  8. {
  9. SetPVarInt(pID,"Fraktion",1);
  10. SendClientMessage(playerid,ROT,string);
  11. }
  12. if(GetPVarInt(playerid,"Fraktion")==2)
  13. {
  14. SetPVarInt(pID,"Fraktion",2);
  15. SendClientMessage(playerid,ROT,string);
  16. }
  17. if(GetPVarInt(playerid,"Fraktion")==3)
  18. {
  19. SetPVarInt(pID,"Fraktion",3);
  20. SendClientMessage(playerid,ROT,string);
  21. }
  22. if(GetPVarInt(playerid,"Fraktion")==4)
  23. {
  24. SetPVarInt(pID,"Fraktion",4);
  25. SendClientMessage(playerid,ROT,string);
  26. }
  27. return 1;
  28. }
Add Comment
Please, Sign In to add comment