Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //==========================================================
- // Cents filterscript version 1.0 by MadeMan
- //==========================================================
- #define FILTERSCRIPT
- #include <a_samp>
- new Text:tdCents[MAX_PLAYERS];
- forward UpdateCentsDisplay(playerid, _cents_string[]);
- public UpdateCentsDisplay(playerid, _cents_string[])
- {
- TextDrawSetString(tdCents[playerid], _cents_string);
- }
- public OnFilterScriptInit()
- {
- print("\n----------------------------------------------");
- print(" Cents filterscript version 1.0 by MadeMan");
- print("----------------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- tdCents[playerid] = TextDrawCreate(608.000, 77.000, "~g~.00");
- TextDrawFont(tdCents[playerid], 3);
- TextDrawLetterSize(tdCents[playerid], 0.500, 2.200);
- TextDrawSetOutline(tdCents[playerid], 2);
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- TextDrawDestroy(tdCents[playerid]);
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- switch(newstate)
- {
- case PLAYER_STATE_ONFOOT, PLAYER_STATE_DRIVER, PLAYER_STATE_PASSENGER:
- TextDrawShowForPlayer(playerid, tdCents[playerid]);
- default:
- TextDrawHideForPlayer(playerid, tdCents[playerid]);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement