Posts: 5
Threads: 1
Joined: Oct 2011
Reputation:
0
Add an Unique ID or KEY for each samp's program installed for avoid ban, and add a function for filterscript with a string as return....
[QUOTE=maxrobon1_police;2331414]
GetUniqueKey(); -> You can get a unique id for each user, based in Hard Disk Number or Mac Address...
[\QUOTE]
thanks
Posts: 263
Threads: 6
Joined: Mar 2012
pawn Код:
//Functions
native AttachCameraToAttachedObject(playerid, slot);
native Audio:CreateAudioStream(url[], Float:posX = 0.0, Float:posY = 0.0, Float:posZ = 0.0, Float:distance = 50.0, usepos = 0, playerid = INVALID_PLAYER_ID, interiorid = -1, virtualworldid = -1); // -- > return the handlerid, and add the parameter "playerid - interiorid - virtualworldid" (-1 for all)
native DestroyAudioStream(Audio:handlerid);
native AttachAudioStreamToPlayer(playerid, Audio:handlerir);
//Callbacks
forward OnAudioFinished(playerid, Audio:handlerid); // if is a public audio, playerid is INVALID_PLAYER_ID
//Definitions
#define INVALID_AUDIO_HANDLE -1
For example:
pawn Код:
new
Audio:Song[MAX_PLAYERS] = {INVALID_AUDIO_HANDLE, ...};
public OnPlayerSpawn(playerid)
{
Song[playerid] = CreateAudioStream("http://somafm.com/tags.pls", 0.0, 0.0, 0.0, 0.0, playerid);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
DestroyAudioStream(Song[playerid]);
return 1;
}
public OnAudioFinished(playerid, Audio:handlerid)
{
if(playerid != INVALID_PLAYER_ID && Song[playerid] != INVALID_SOUND_HANDLE)
{
SendClientMessage(playerid, -1, "SONG FINISHED. NEXT SONG: X");
Song[playerid] = CreateAudioStream("http://somafm.com/tags2.pls", 0.0, 0.0, 0.0, 0.0, playerid);
}
return 1;
}
you can have total control of the sound, songs, etc!
PD: sorry for my english
Posts: 1,767
Threads: 124
Joined: Mar 2010
Quote:
Originally Posted by maxrobon1_police
Add an Unique ID or KEY for each samp's program installed for avoid ban, and add a function for filterscript with a string as return....
|
Quote:
Originally Posted by maxrobon1_police
GetUniqueKey(); -> You can get a unique id for each user, based in Hard Disk Number or Mac Address...
thanks
|
Yes, primary keys & foreign keys or something like that.
And the BindKey is a very good suggestion.
Quote:
Originally Posted by AirKite
|
Why did you called it "listen key" ?
Posts: 1,745
Threads: 252
Joined: Dec 2011
Reputation:
0
A function to disable certain interior/exterior pickups maybe using the removebuildingforplayer method?
Posts: 1,290
Threads: 69
Joined: Dec 2006
Reputation:
0
SetGarageOpen(garageID, bool: open)
IDs:
0 Commerce Region, Loading Bay Garage (Life's a Beach)
1 LSPD Police Impound Garage
2 Mission Garage near El Corona (Los Desperados)
3 Eight Ball Autos near El Corona
4 Mission Garage near El Corona (Cesar Vialpando)
5 Player Garage: El Corona
6 LS Burglary Garage near Playe del Seville
7 LowRider Tuning Garage in Willowfield
8 Pay 'n' Spray in Idlewood
9 Player Garage: Johnson House
10 Transfender in Temple
11 Pay 'n' Spray in Temple
12 Pay 'n' Spray in Santa Maria Beach
13 Player Garage: Santa Maria Beach
14 Player Garage: Mulholland
15 Wheel Archangels in Ocean Flats
16 Mission Garage in Ocean Flats (T-Bone Mendez)
17 Player Garage: Hashbury
18 Transfender near Wang Cars in Doherty
19 Pay 'n' Spray near Wang Cars in Doherty
20 SF Burglary Garage, Loading Bay near Doherty
21 Player Garage: Doherty
22 Mission Garage in Doherty Garage
23 Woozie's Mission Garage in Chinatown (Ran Fa Li)
24 Michelle's Pay 'n' Spray in Downtown
25 Player Garage: Calton Heights
26 SFPD Police Impound Garage
27 Pay 'n' Spray in Juniper Hollow
28 Player Garage: Paradiso
29 LVPD Police Impound Garage
30 Airport Plane Garage in Las Venturas
31 LV Burglary Garage near Camel's Toe
32 Pay 'n' Spray near Royal Casino
33 Transfender in come-a-lot
34 Player Garage: Rockshore West
35 Welding Wedding Bomb-workshop in Emerald Isle
36 Pay 'n' Spray in Redsands East
37 Player Garage: Redsands West
38 Player Garage: Prickle Pine
39 Player Garage: Whitewood Estates
40 Pay 'n' Spray in El Quebrados
41 Pay 'n' Spray in Fort Carson
42 Player Garage: Fort Carson
43 Player Garage: Verdant Meadows
44 Mission Garage in El Castillo del Diablo (Interdiction)
45 Airport Garage in Verdant Meadows
46 Mission Garage in Angel Pine (Puncture Wounds)
47 Pay 'n' Spray in Dillimore
48 Player Garage: Palomino Creek
49 Player Garage: Dillimore
Posts: 709
Threads: 63
Joined: Feb 2009
Reputation:
0
Allow clientside scripts, not files, scripts only (amx), would be great if you want to make stuff without having to be concerned about lag and it wouldn't change GTA:SA into another game since it would only be script related.
Posts: 1,767
Threads: 124
Joined: Mar 2010
Get B-Dup skin from the cutscenes.img (model *.dff and texture *.txd) and put him in SA-MP. And then it should be all skins in SA-MP (excepting Kendle, she was always different ped). That's job is for SA-MP modeler.
Would be great.