28.10.2018, 13:34
1.) You can reduce the player textdraws used by using global textdraws for any textdraws that don't change on a per player basis.
2.) This can be removed player textdraws are for the client specifically no need to destroy them.
3.) Do this check first before doing anything.
2.) This can be removed player textdraws are for the client specifically no need to destroy them.
Code:
public OnPlayerDisconnect(playerid, reason) { for(new i = 0; i < 10; i ++) { PlayerTextDrawDestroy(playerid, cWspeedo[playerid][i]); cWspeedo[playerid][i] = PlayerText:INVALID_TEXT_DRAW; } return 1; }
Code:
if(!IsAbicycle(vehicleid))