20.04.2012, 07:43
Hello poeple, Ok so im currently working on a Script thats actually pretty cool. if you know the game Crysis than you know what im talking about !, ok so i am looking all over the internet to find how i can make poeple jump higher and run faster, like in the crysis game! im also looking on how to make teams but i dont understand
anything >.<! but my main thing is the Jumping and sprinting. edit : is there a way to bind commands to certain keys? like jump = Lshift and sprint Lalt? i would really love it !
(---> im currently also looking for scripters/mappers! <---)
anything >.<! but my main thing is the Jumping and sprinting. edit : is there a way to bind commands to certain keys? like jump = Lshift and sprint Lalt? i would really love it !
(---> im currently also looking for scripters/mappers! <---)
pawn Код:
//===========================================================================================
// Nano Power Survival has been made by Eric Graventein ( CyberrCookie ) |
// Version : NP V1.0 |
// CopyRight Nano Power Survival V1.0 |
// Scripters : Eric Graventein ( CyberrCookie ) : e.graventein@hotmail.nl |
// Mapper : Eric Graventein ( CyberrCookie ) : e.graventein@hotmail.nl |
// Thanks to ******* Tutorial video's! They helped me alot. |
// Thanks to the Poeple of the SA-MP forums for fixing some Bugs / Glitches / and other... |
//===========================================================================================
//Defines=======================================================================
#define LIGHTBLUE 0x33CCFFAA
#define RED 0xAA3333AA
#define GREY 0xAFAFAFAA
#define YELLOW 0xFFFF00AA
#define PINK 0xFF66FFAA
#define BLUE 0x0000BBAA
#define WHITE 0xFFFFFFAA
#define DARKRED 0x660000AA
#define ORANGE 0xFF9900AA
#define BRIGHTRED 0xFF0000AA
#define INDIGO 0x4B00B0AA
#define VIOLET 0x9955DEEE
#define LIGHTRED 0xFF99AADD
#define SEAGREEN 0x00EEADDF
#define GRAYWHITE 0xEEEEFFC4
#define LIGHTNEUTRALBLUE 0xabcdef66
#define GREENISHGOLD 0xCCFFDD56
#define LIGHTBLUEGREEN 0x0FFDD349
#define NEUTRALBLUE 0xABCDEF01
#define LIGHTCYAN 0xAAFFCC33
#define LEMON 0xDDDD2357
#define MEDIUMBLUE 0x63AFF00A
#define NEUTRAL 0xABCDEF97
#define BLACK 0x00000000
#define NEUTRALGREEN 0x81CFAB00
#define DARKGREEN 0x12900BBF
#define LIGHTGREEN 0x24FF0AB9
#define DARKBLUE 0x300FFAAB
#define BLUEGREEN 0x46BBAA00
#define PINK 0xFF66FFAA
#define LIGHTBLUE 0x33CCFFAA
#define DARKRED 0x660000AA
#define ORANGE 0xFF9900AA
#define PURPLE 0x800080AA
#define GRAD1 0xB4B5B7FF
#define GRAD2 0xBFC0C2FF
#define RED1 0xFF0000AA
#define GREY 0xAFAFAFAA
#define GREEN 0x33AA33AA
#define RED 0xAA3333AA
#define YELLOW 0xFFFF00AA
#define WHITE 0xFFFFFFAA
#define BROWN 0x993300AA
#define CYAN 0x99FFFFAA
#define TAN 0xFFFFCCAA
#define PINK 0xFF66FFAA
#define KHAKI 0x999900AA
#define LIME 0x99FF00AA
//Includes======================================================================
#include <a_samp>
//Variables=====================================================================
//Game Mode=====================================================================
main()
{
print("\n-----------------------");
print(" Nano Power Survival ");
print("-----------------------\n");
print(" All CopyRights NPS V1.0 ");
}
public OnGameModeInit()
{
print("Nano Cells Initiated, Starting Server...");
SetGameModeText("NP V2.0");
UsePlayerPedAnims();
AddPlayerClass(283, 5, 5, 5, 360, 23, 100, 25, 150, 0, 0);
AddPlayerClass(283, 5, 5, 5, 360, 23, 100, 32, 800, 0, 0);
AddPlayerClass(288, 5, 5, 5, 360, 23, 100, 32, 800, 0, 0);
AddPlayerClass(283, 5, 5, 5, 360, 23, 100, 25, 150, 0, 0);
return 1;
}
public OnGameModeExit()
{
print("Shutting down Nano Cells, Good Bye!");
return 1;
}
//PlayerConnect/Disconect=======================================================
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid, BLUE, "==========================================");
SendClientMessage(playerid, GREY, "NANO SUIT: Welcome to Nano Power Survival ");
SendClientMessage(playerid, WHITE, "NANO SUIT: Enjoy your stay! ");
SendClientMessage(playerid, BLUE, "==========================================");
SendClientMessageToAll(GREY, "NANO SUIT: A player joined the server ");
SetWeather(43);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
SendClientMessageToAll(GREY, "NANO SUIT: A player left the server ");
return 1;
}
//Class/Spawn/Death=============================================================
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 5, 5, 5);
SetPlayerFacingAngle(playerid, 270.0);
SetPlayerCameraPos(playerid, 6, 6, 6);
SetPlayerCameraLookAt(playerid, 5, 5, 5);
return 1;
}
public OnPlayerSpawn(playerid)
{
SendClientMessage(playerid, YELLOW, "Type /help for help to se all commands and rules.");
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
SendClientMessage(playerid, RED, "NANO SUIT: Systems failing, Fatel error.");
return 1;
}
//PlayerCommands================================================================
// Advanced Nano Technology=====================================================
public OnPlayerCommandText(playerid, cmdtext[])
{
if (!strcmp("/wearetheleadingforce", cmdtext))
{
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
SetPlayerSkin(playerid, 287);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 24, 100);
GivePlayerWeapon(playerid, 27, 200);
GivePlayerWeapon(playerid, 31, 500);
SendClientMessage(playerid, BLUE, "NANO SUIT: Nano Cells initiating, Booting up suit...... DNA recognized. Welcome back sir.");
SendClientMessageToAll(WHITE, "NANO SUIT: Somewan has logged in on his Advanced Nano Suit.");
return 1;
}
if (!strcmp("/maximumarmour", cmdtext))
{
SendClientMessage(playerid, BLUE, "NANO SUIT: Maximum Armour!");
SendClientMessage(playerid, WHITE,"Now you have 2x 100 armour.");
SetPlayerArmour(playerid, 200);
return 1;
}
if (!strcmp("/maximumstrength", cmdtext))
{
SendClientMessage(playerid, BLUE, "NANO SUIT: Maximum Stength!");
SetPlayerVelocity(playerid,0.0,0.0,1.5);
return 1;
}
return 0;
}