Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //no topo:
- forward TextDrawGPTimer();
- new Text:gpon[MAX_PLAYERS];
- //no OnGameModeInit:
- for(new i; i < MAX_PLAYERS; i++)
- {
- gpon[i] = TextDrawCreate(500.0, 150.0, " ");
- TextDrawFont(gpon[i], 2);
- TextDrawSetShadow(gpon[i], 0);
- TextDrawSetOutline(gpon[i], 1);
- TextDrawUseBox(gpon[i], 0);
- }
- SetTimer("TextDrawGPTimer", 750, 1);
- //no OnPlayerConnect:
- TextDrawShowForPlayer(playerid, gpon[playerid]);
- //no final do mode:
- public TextdrawGPTimer()
- {
- for(new i; i < MAX_PLAYERS; i++)
- {
- new string[256];
- format(string, sizeof(string), "~w~gp: $%d", GetPlayerGP(i));
- TextDrawSetString(gpon[i], string);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment