09.08.2011, 15:28
(
Последний раз редактировалось Cyanide; 10.08.2011 в 14:39.
)
→ About
Cyanide's Bench-Pressing System allows multiplayer users to experience the singleplayer feature of bench-pressing.
→ Advantages
→ Functions ( benchPress.inc required )
→ Codes
→ Video
Filterscript + .inc download.
Progress Bar download.
YSI package download
→ Tutorial
Tutorial List
→ Credits
Cyanide's Bench-Pressing System allows multiplayer users to experience the singleplayer feature of bench-pressing.
→ Advantages
- Plug N' Play
- Ability to add your own bench-press locations.
- Preloaded barbells.
- Useful Callbacks
- Unable to increase the muscle stat ( Impossible in SA:MP )
pawn Код:
public OnPlayerBenchPress( playerid, reps )
{
printf( "ID %i has just benched, increasing his current reps to %i.", playerid, reps );
}
public OnPlayerStartBenchPress( playerid, result )
{
switch( result )
{
case 0:
{
SendClientMessage( playerid, 0x0, "You're not allowed to bench, someone is currently using it!" );
}
case 1:
{
SendClientMessage( playerid, 0x0, "{FFFFFF}You're now starting to bench, use the spacebar to increase the power bar." );
}
}
}
public OnPlayerExitBenchPress( playerid, reps )
{
printf( "Player %i has stopped bench pressing, and has done %i reps!", playerid, reps );
}
pawn Код:
OnPlayerBenchPress( playerid, reps ) - Called when someone does a bench rep.
OnPlayerStartBenchPress( playerid, result ) - Called when someone starts to bench-press
OnPlayerExitBenchPress( playerid, reps ) - Called when a player stops bench-pressing.
Код:
OnPlayerStartBenchPress ( result ) 0 - Failure. 1 - Success.
[ame]http://www.youtube.com/watch?v=2IEXZ3c8NYI[/ame]
→ DownloadFilterscript + .inc download.
Progress Bar download.
YSI package download
→ Tutorial
Tutorial List
→ Credits
Код:
Cyanide - Project Launcher & Developer Grim_ - Testing. ****** - YSI. Toribio - Progress Bar. SA-MP Team - San Andreas Multiplayer Modification.