I have a radio system, But i want to save the radio name/radio url and call it when the player enter the vehicle(If He did /radio before) and stop/save it again when he leave the vehicle
Shall i use enum to save name/url or what, I made a script but i can't make it work because i don't know what to use exactly.
Код:
#pragma tabsize 0
UsingAttachment(playerid,index [],modelid[],bone[],fOffsetX,fOffsetY,fOffsetZ,fRotX,fRotY,fRotZ,fScaleX,fScaleY,fScaleZ,materialcolor1,materialcolor2)
{
SetPlayerAttachedObject(playerid, index, modelid, bone, fOffsetX = 0.0, fOffsetY = 0.0, fOffsetZ = 0.0, fRotX = 0.0, fRotY = 0.0, fRotZ = 0.0, fScaleX = 1.0, fScaleY = 1.0, fScaleZ = 1.0, materialcolor1 = 0, materialcolor2 = 0);
gPlayerUsingAttachment[playerid] = 1;
}