mlacke

Untitled

Mar 22nd, 2012
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. }
  2. if(strcmp(cmd,"/ss",true) == 0 || strcmp(cmd,"/pokazilicnukartu",true) == 0)
  3. {
  4. if(IsPlayerConnected(playerid))
  5. {
  6. tmp = strtok(cmdtext, idx);
  7. if(!strlen(tmp))
  8. {
  9. SendClientMessage(playerid, COLOR_WHITE, "Koriscenje: /ss [playerID/DeoImena]");
  10. return 1;
  11. }
  12. giveplayerid = ReturnUser(tmp);
  13. if(IsPlayerConnected(giveplayerid))
  14. {
  15. if(giveplayerid != INVALID_PLAYER_ID)
  16. {
  17. if (ProxDetectorS(8.0, playerid, giveplayerid))
  18. {
  19. if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "Da bi pogledali svoju licnu kartu kucajte /licnakarta"); return 1; }
  20. ShowStats(giveplayerid,playerid)
  21. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  22. format(string, sizeof(string), "* %s pokazuje svoju licnu kartu igracu %s.", sendername ,giveplayer);
  23. ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
  24. }
  25. else
  26. {
  27. SendClientMessage(playerid, COLOR_GREY, " Igrac nije blizu vas!");
  28. return 1;
  29. }
  30. }
  31. }
  32. else
  33. {
  34. SendClientMessage(playerid, COLOR_GREY, " Igrac je Offline!");
  35. return 1;
  36. }
  37. }
  38. return 1;
  39. }
Advertisement
Add Comment
Please, Sign In to add comment