12.02.2015, 15:12
Thank you! and thanks for the rep!!
Thanks!
You might wanna take another peak at this code.
Thanks!
Quote:
You don't even destroy any objects anywhere in the code this will eventually crash all the clients.
|
pawn Код:
public THERMALOFF(playerid)
{
TextDrawDestroy( crosshair[playerid] ); // Destroying the crosshair
new vehid = playerveh[playerid];
SCM( playerid,COLOR_LIGHTRED,"NOTICE: "COL_WHITE"You have left thermal mode." );
DeletePVar( playerid,"ThermalActive" ); // Deleting thermalactive from player
SetCameraBehindPlayer( playerid ); // Setting the camera back to the player
DestroyObject(objectids[vehid]); // Destroying the light from the helicopter
return 1;
}