This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Useful snippets by Rogue 2018/2/20 | |
//Get Weapon Slot from id: | |
stock GetWeaponSlot(weaponid) | |
{ | |
switch(weaponid) | |
{ | |
case 0..1: return 0; | |
case 2..9: return 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Custom skin support Include RogueDrifter 2018-1-13 | |
#include <a_samp> | |
GetPlayerSkinEx(playerid) | |
return (GetPlayerCustomSkin(playerid) <= 0) ? GetPlayerSkin(playerid) : GetPlayerCustomSkin(playerid); | |
#if defined _ALS_GetPlayerSkin | |
#undef GetPlayerSkin | |
#else | |
#define _ALS_GetPlayerSkin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Thread: http://forum.sa-mp.com/showthread.php?p=3975279 | |
CMD:gotovice(playerid) | |
{ | |
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) | |
{ | |
SetPlayerInterior(playerid, 0); | |
SetPlayerVirtualWorld(playerid, 696967); | |
SetVehicleVirtualWorld(GetPlayerVehicleID(playerid),696967); | |
SetVehiclePos(GetPlayerVehicleID(playerid),5017.89203,834.71497,11.0); | |
SetVehicleZAngle(GetPlayerVehicleID(playerid), 180); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Function: HammerPlayer(playerid, Float:speed); || PenetratePlayer(playerid, Float:speed); | |
#if defined _rHammerPlayer_Included | |
#endinput | |
#endif | |
#define _rHammerPlayer_Included | |
#include <a_samp> | |
new ActualHammer[MAX_PLAYERS]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Simple afk checker by Rogue 2018 Sept 2nd. | |
Functions: | |
__________ | |
IsPlayerPaused(playerid); | |
IsPlayerAFK(playerid); | |
Callbacks: | |
__________ |