stock Briefcase(objectid, playerid, Float:OffsetX, Float:OffsetY, Float:OffsetZ, Float:rX, Float:rY, Float:rZ) { if(PlayerLogged[playerid] == 0) return 1; if(GetMoney(playerid) < 10000); SetPlayerHoldingObject(playerid, 1210, 5, 0, 0, 0) if(GetMoney(playerid) > 10000); StopPlayerHoldingObject(playerid) return 1; } |
SetPlayerHoldingObject Warning: This function was removed in SA-MP 0.3c. check SetPlayerAttachedObject
stock Briefcase(playerid, index, modelid, bone, Float:OffsetX, Float:OffsetY, Float:OffsetZ, Float:rX, Float:rY, Float:rZ)
{
if(PlayerLogged[playerid] == 0) return 1;
if(GetMoney(playerid) > 10000);
SetPlayerAttachedObject(playerid, index, modelid, bone, Float:OffsetX, Float:OffsetY, Float:OffsetZ, Float:rX, Float:rY, Float:rZ);
if(GetMoney(playerid) < 10000);
RemovePlayerAttachedObject(playerid, index);
return 1;
}
//somewhere
Briefcase(playerid, 3, 1210, 6, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);//6 is right hand