Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ocmd:invite(playerid,params[])
- {
- if(!Rang(playerid,3))return SendClientMessage(playerid,ROT,"Server: Du bist Kein Leader");
- new pID,string[128];
- if(sscanf(params,"us",pID))return SendClientMessage(playerid,BLAU,"/invite [id] [Grund]");
- format(string,sizeof(string),"Server: %s wurde in Die Fraktion Invitet von %s Grund:",SpielerName(pID),SpielerName(playerid),string);
- if(GetPVarInt(playerid,"Fraktion")==1)
- {
- SetPVarInt(pID,"Fraktion",1);
- SendClientMessage(playerid,ROT,string);
- }
- if(GetPVarInt(playerid,"Fraktion")==2)
- {
- SetPVarInt(pID,"Fraktion",2);
- SendClientMessage(playerid,ROT,string);
- }
- if(GetPVarInt(playerid,"Fraktion")==3)
- {
- SetPVarInt(pID,"Fraktion",3);
- SendClientMessage(playerid,ROT,string);
- }
- if(GetPVarInt(playerid,"Fraktion")==4)
- {
- SetPVarInt(pID,"Fraktion",4);
- SendClientMessage(playerid,ROT,string);
- }
- return 1;
- }
Add Comment
Please, Sign In to add comment