Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define FILTERSCRIPT
- /*Make a script so that:
- -When a player types "CMDNAME" he will get cash when he spawns again
- -When the player leaves the next player wont get the cash until he does the CMD again
- */
- #include <a_samp>
- new PlayerGetsCashAtSpawn[MAX_PLAYERS];
- public OnFilterScriptInit()
- {
- for(new i = 0;i<MAX_PLAYERS;i++)
- {
- PlayerGetsCashAtSpawn[i] = 0;
- }
- print("\n--------------------------------------");
- print(" Loaded Practice");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- print("\n--------------------------------------");
- print(" Unloaded practice");
- print("--------------------------------------\n");
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/COMMANDNAME", cmdtext, true, 10) == 0)
- {
- //all the functions
- return 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement