Posts: 3,324
Threads: 96
Joined: Sep 2013
Quote:
Originally Posted by lean1337
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; }
|
Why are you doing "new vehid = playerveh"?
You can just simply use playerveh in place of it.
Quote:
Originally Posted by Crayder
pawn Код:
public THERMALOFF(playerid) { TextDrawDestroy( crosshair[playerid] ); // Destroying the crosshair 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[playerveh[playerid]]); // Destroying the light from the helicopter return 1; }
|