28.11.2012, 10:18
(
Последний раз редактировалось XtremeR; 28.11.2012 в 14:35.
)
Natives:
Native | Effect |
GiveHealth(playerid,Float:Health) | To Give Player Health ! |
TakeHealth(playerid, Float:Health) | To Take Health From the Player! |
GivePlayerArmour(playerid,Float:Armour) | Give Player Armour! |
Slap(playerid) | To Slap the player! |
Explode(playerid) | Explode the player! |
TakeArmour(playerid, Float:Armour)r | Take Armour from the player! |
GivePlayerScore(playerid,Float:Score) | Give Score to the player! |
IsPlayerInArea | Get if the player is in the area! |
GetVehicleSpeed(vehicleid) | Get Vehicle Speed! |
GetPlayerSpeed(playerid) | Get Player Speed on Foot! |
IsPlayerInWater(playerid) | To Get that if the player is in the water! |
IsPlayerSkydiving(playerid) | To get that if the player is Sky diving! |
IsPlayerUsingParachute(playerid) | To get that if the player is using the parachute! |
IsPlayerAiming(playerid)r | To get if the player is Aiming! |
GetWeather(weatherid) | Simply Get the weather's name! |
HealAll() | Heal all the players online! |
ArmourAll() | Armour all the players online! |
GiveAllCash(cash) | Give all players cash! |
GiveAllScore(score) | Giving everyone Score! |
GetName(playerid) | Get Player's Name. |
FreezeAll() | Freeze everyone online! |
DisarmAll() | Disarm all players online! |
UnfreezeAll() | Unfreeze everyone online! |
GetAmmo(playerid) | Get Player's weapon's Ammo! |
SendMessageToAdmins | Sending message to the Rcon admins online! |
Usage:
Usage of everything is really very simple and its really useful also!
Example Usage of GiveHealth
pawn Код:
CMD:buyhealth(playerid,params[])
{
SendClientMessage(playerid,-1,"You bought +10 Health!");
GiveHealth(playerid,10);
return 1;
}
pawn Код:
CMD:donatehealth(playerid,params[])
{
SendClientMessage(playerid,-1,"You just Donated 10 Percent of your health!");
TakeHealth(playerid,10);
return 1;
}
pawn Код:
CMD:buyarmour(playerid,params[])
{
SendClientMessage(playerid,-1,"You just bought +10 armour!");
GivePlayerArmour(playerid,+10);
return 1;
}
pawn Код:
CMD:slapme(playerid,params[])
{
Slap(playerid);
SendClientMessage(playerid,-1,"You Slapped your self!");
return 1;
}
pawn Код:
CMD:killme(playerid,params[])
{
SendClientMessage(playerid,-1,"You just Exploded your self!");
Explode(playerid);
return 1;
}
Example:
pawn Код:
public OnPlayerUpdate(playerid)
{
if(GetPlayerSpeed => 20)
{
SendClientMessage(playerid,"You have been banned for on foot speed hacks!");
Ban(playerid);
}
if(GetVehicleSpeed => 800)
{
SendClientMessage(playerid,"You have been banned for Vehicle speed hacks!");
Ban(playerid);
}
return 1;
}
Example:
pawn Код:
CMD:teleme(playerid,params[])
{
if (IsPlayerInWater(playerid) return SendClientMessage(playerid,-1,"You cant use this Command in water!");)
SetPlayerPos(playerid,0,0,0);
return 1;
}
You can use IsPlayerAiming for alot of stuff, and its really useful!
Example:
pawn Код:
CMD:teleme(playerid,params[])
{
IsPlayerInWater(playerid) return SendClientMessage(playerid,-1,"You cant use this Command in water!");
SetPlayerPos(playerid,0,0,0);
return 1;
}
Example:
pawn Код:
public OnPlayerText(playerid, text[])
{
if(text[0] == '@' && IsPlayerAdmin(playerd))
{
new string[128];
GetPlayerName(playerid,string,sizeof(string));
format(string,sizeof(string),"Admin Chat: %s: %s",string,text[1]);
SendMessageToAdmins(red,string);
return 0;
}
Example:
pawn Код:
CMD:healall(playerid,params[])
{
HealAll();
SendClientMessageToAll(-1,"Administrator Healed everyone!");
return 1;
}
pawn Код:
CMD:armourall(playerid,params[])
{
ArmourAll();
SendClientMessageToAll(-1,"Administrator gave everyone Armour!");
return 1;
}
pawn Код:
CMD:freezeall(playerid,params[])
{
FreezeAll();
SendClientMessageToAll(-1,"Administrator Freezed everyone!");
return 1;
}
pawn Код:
CMD:unfreezeall(playerid,params[])
{
UnFreezeAll();
SendClientMessageToAll(-1,"Administrator UnFreezed everyone!");
return 1;
}
Usage of GetWeather:
pawn Код:
public OnPlayerConnect(playerid)
{
new string[64];
format(string,sizeof(string),"Welcome back, Today the weather is %d",GetWeather(weatherid));
SendClientMessage(playerid,0xFFFFFFAA,string);
return 1;
}
Installation:
To install it, simply download it by the link below, then copy the include and take it to your Server Folder >> Pawno >> Include >> paste it there, then after that, open your script and at the top, write:
pawn Код:
#include <xStocks>
Other:
Was just thinking what to release, because I left servers I used to play one, so here goes an other release. As always if you find any bugs PM me or post it at my Website, or use Skype or ********. Thanks..
Download:
Click Me to Download!