14.12.2010, 06:10
(
Последний раз редактировалось Retardedwolf; 14.12.2010 в 07:12.
)
Quote:
Screenshots
• http://i.imgur.com/gblVN.jpg • http://i.imgur.com/h712X.jpg • (NOTE : The crosshair and explosion is a mod) • Can someone please upload a video of this filterscript?(ATM Australia internet is slow ass it will take me a life to upload it) |
pawn Код:
new tScore [ MAX_PLAYERS];
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(GetPVarInt(playerid, "training") == 1)
{
if(newkeys & KEY_FIRE && GetPlayerWeapon(playerid) != 0)
{
new Float:x,
Float:y,
Float:z;
GetPosFromView(playerid, 80, x, y, z);
for(new ob,l=MAX_OBJECTS;ob<l;ob++)
{
if(ObjectToPoint(playerid, 1,ob, x, y, z) != 0)
{
tscore [ playerid ] ++;
DestroyPlayerObject(playerid, ob);
}
}
}
return 1;
}
return 0;
}
COMMAND:tscore( playerid, params [ ])
{
new
string [15];
format ( string, sizeof( string ), "Score = %d", tscore [ playerid ] );
SendClientMessage ( playerid, SUCCESS, string );
return 1;
}