Advertisement
legodude

legodude

Sep 9th, 2010
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.98 KB | None | 0 0
  1. #define FILTERSCRIPT
  2. /*Make a script so that:
  3.     -When a player types "CMDNAME" he will get cash when he spawns again
  4.     -When the player leaves the next player wont get the cash until he does the CMD again
  5. */
  6. #include <a_samp>
  7. new PlayerGetsCashAtSpawn[MAX_PLAYERS];
  8. public OnFilterScriptInit()
  9. {
  10.     for(new i = 0;i<MAX_PLAYERS;i++)
  11.     {
  12.     PlayerGetsCashAtSpawn[i] = 0;
  13.     }
  14.     print("\n--------------------------------------");
  15.     print(" Loaded Practice");
  16.     print("--------------------------------------\n");
  17.     return 1;
  18. }
  19.  
  20. public OnFilterScriptExit()
  21. {
  22.     print("\n--------------------------------------");
  23.     print(" Unloaded practice");
  24.     print("--------------------------------------\n");
  25.     return 1;
  26. }
  27.  
  28. public OnPlayerDisconnect(playerid, reason)
  29. {
  30.     return 1;
  31. }
  32.  
  33. public OnPlayerSpawn(playerid)
  34. {
  35.     return 1;
  36. }
  37.  
  38. public OnPlayerCommandText(playerid, cmdtext[])
  39. {
  40.     if (strcmp("/COMMANDNAME", cmdtext, true, 10) == 0)
  41.     {
  42.         //all the functions
  43.         return 1;
  44.     }
  45.     return 0;
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement