native SetObjectDestructible(objectid);
CreatePlayerVideo( playerid, url, x, y)
CreateVideo(url, x, y)
StopPlayerVideo(playerid)
StopVideo(playerid)
CMD:gangnam(playerid,params[])
{
CreateVideo("http://www.youtube.com/watch?v=9bZkp7q19f0",150,150);
return 1;
}
OnVehicleTakeDamage (vehicleid, issuerid, Float: Amount, weaponid)
OnPlayerGiveVehicleDamage (playerid, vehicleid, Float: Amount, weaponid)
i know you can't create this but i like
pawn Код:
|
native CreateVideoStream(url,x,y);//creates a video stream which can be shown for players
native VideoStreamSize(streamid,x,y);//change a size of video window/box
native VideoStreamShowForPlayer(playerid,streamid);//Shows a video box for a player
native VideoStreamHideForPlayer(playerid,streamid);//you know what it is
native VideoStreamStartForPlayer(playerid,streamid,starttime=0);//Start video for player from a current second
native VideoStreamStopForPlayer(playerid,streamid);//Stops a video
native VideoStreamBoxColor(streamid,color);//change a color of a video box
//callbacks
forward OnVideoStreamStarted(streamid,playerid); Called when used VideoStreamStartForPlayer
forward OnVideoStreamStopped(streamid,playerid);//called when used VideoStreamStopForPlayer or wehn the video ends
new Video:gangnam;
public OnGameModeInit()
{
gangnam=CreateVideoStream("examplesite.com/gangnam.avi",50,50);
VideoStreamSize(gangnam,500,500);
VideoStreamBoxColor(gangnam,0xFFFF00);
return 1;
}
CMD:gangnam(playerid,params[])
{
VideoStreamShowForPlayer(playerid,gangnam);
VideoStreamStartForPlayer(playerid,gangnam);
return 1;
}
public OnVideoStreamStopped(streamid,playerid)
{
if(streamid == gangnam) return VideoStreamHideForPlayer(playerid,streamid);
return 1;
}
native ShowPlayerDialogEx(playerid,dialogid,style,title[],content[],button1[],button2[],button3[],button4[]);
//playerid - you know what it is
//dialogid - you know this too
//style - dialog style
//title - the dialog title
//content - what is written in the dialig
//button1;button2(optional) etc... - buttons for this dialog.
forward OnDialogResponseEx(playerid,dialogid,listitem,buttonid);//callback for new dialog type
CMD:testdialog(playerid,params[])
{
ShowPlayerDialogEx(playerid,1000,DIALOG_STYLE_LIST,"Test DIalog","Hello! This is the test dialog!\nPress 'Cancel' to close it, \n'Next' to go to the next dialog, \m'Prev' to go to the previous dialog, or \n'Vehicles' to go to vehicles spawner","Vehicles","Next","Prev","Cancel");
return 1;
}
public OnDialogResponseEx(playerid,dialogid,listitem,buttonid)
{
if(buttonid == 0) OpenVehicleSpawner//shows vehicles spawner for player
if(buttonid == 1) ShowPlayerDialog(.......);//example to show player next dialog
if(buttonid == 2) ShowPlayerDialog(.......);//example to show player previous dialog
if(buttonid == 3) return 0;//do nothing and close :)
return 1;
}
i know you can't create this but i like
pawn Код:
pawn Код:
|
My suggestion:
- Allow in PlayAudioStreamForPlayer to use ******* links, and the music to start play |
public OnPlayerRender(playerid); // it's called when a new frame is processed.
public OnPlayerPreRender(playerid); // it's called before the new frame is processed.
Looks nice. Could you tell where can I find a list of codes like these?
|
I hope these codes are valid:
0501- "set player can do drive by" - TogglePlayerDriveby(player handle, int) 03F5 - "set car can be damaged" - ToggleVehicleVulnerable(car handle, int) 02CE - "get ground z for 3d cord" - GetGroundZFromCoords(flt, flt, flt, var) 02CC - "is object on screen" - IsObjectOnScreen(object handle) |
is it like 150-200(don't remember) the max cells that function can take.. moreover |
it doesn't even give you some kind of warning, or anything related to this matter. |
if(strlen(text) > 128)
{
SendClientMessage(playerid, -1, "ERROR: Can't send a message longer than 128 characters.");
return true;
}
0501- "set player can do drive by" - TogglePlayerDriveby(player handle, int) |
new bool: TogDB[MAX_PLAYERS];
stock TogglePlayerDriveby(playerid, bool: set)
{
if(set)TogDB[playerid] = true;
else TogDB[playerid] = false;
return set;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
if(TogDB[playerid])SetPlayerArmedWeapon(playerid, 0);
else SetPlayerArmedWeapon(playerid, GetPlayerWeapon(playerid));
}
return true;
}
128.
pawn Code:
Anyway.. try to split player message on two and send in the new line a second part of the message. |
Already exists! https://sampwiki.blast.hk/wiki/SetVehicleParamsForPlayer
|
Used to exist, but was removed because it caused problems (I can't remember what they were, possibly major lag).
|
0547 - callback OnPlayerTouchedVehicle(playerid, vehicleid)
054A - To can destroy a vehicle without a player into. |
03F5 - "set car can be damaged" - ToggleVehicleVulnerable(car handle, int)
02CE - "get ground z for 3d cord" - GetGroundZFromCoords(flt, flt, flt, var) |
Come on Kalcor, he give you a codes, only what you need to do is include it to SA-MP and make functions.
|
Come on Kalcor, he give you a codes, only what you need to do is include it to SA-MP and make functions.
Lorenc_ it will be the best if you include this codes in your first post. |