Advertisement
Guest User

_playercards - Notesblok

a guest
Nov 19th, 2011
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. #include common_scripts\utility;
  2. #include maps\mp\_utility;
  3.  
  4.  
  5. init()
  6. {
  7. level thread onPlayerConnect();
  8. }
  9.  
  10.  
  11. onPlayerConnect()
  12. {
  13. for(;;)
  14. {
  15. level waittill( "connected", player );
  16.  
  17. //@NOTE: Should we make sure they're really unlocked before setting them? Catch cheaters...
  18. // e.g. isItemUnlocked( iconHandle )
  19.  
  20. iconIndex = player maps\mp\gametypes\_persistence::statGet( "cardIcon" );
  21. iconHandle = TableLookupByRow( "mp/cardIconTable_strm.csv", iconIndex, 0 );
  22. player SetCardIcon( iconHandle );
  23.  
  24. titleIndex = player maps\mp\gametypes\_persistence::statGet( "cardTitle" );
  25. titleHandle = TableLookupByRow( "mp/cardTitleTable_strm.csv", titleIndex, 0 );
  26. player SetCardTitle( titleHandle );
  27.  
  28. nameplateHandle = player maps\mp\gametypes\_persistence::statGet( "cardNameplate" );
  29. player SetCardNameplate( nameplateHandle );
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement