Advertisement
Guest User

Untitled

a guest
Jul 5th, 2015
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. YCMD:pm(playerid, params[],help)
  2. {
  3. #pragma unused help
  4. if (PlayerInfo[playerid][pGM] >= 1 || PlayerInfo[playerid][pAdmin] >= 1)
  5. {
  6. new id, poruka[128];
  7. if(sscanf(params, "us[128]", id, poruka)) return SCM(playerid,-1,""CRVENA"IG:SP Pomoc | "BELA"/pm [ID/Ime] [text]");
  8. new string[156];
  9. if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_GRESKA, " {FFFFFF}[{F81414}Greska!{FFFFFF}] {C3C3C3}Pogresan ID!");
  10. format(string,sizeof string, ""CRVENA"Poslali ste pm igracu %s-u [ID:%d]: "BELA"%s", GetName(id) , id, poruka);
  11. SendClientMessage(playerid, -1,string);
  12. format(string,sizeof string ,""CRVENA"%s [ID:%d] vam je poslao pm: "BELA"%s",GetName(playerid),playerid,poruka);
  13. SendClientMessage(id, -1,string);
  14. }
  15. return 1;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement