14.12.2010, 07:50
Quote:
The code for score system is just based off your's I just edited a little it might be your script's problem it not working. |
as i already said don't know why but even SendClientMessage doesn't work
pawn Код:
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)
{
SendClientMessage(playerid, SUCCESS, "TEST");
DestroyPlayerObject(playerid, ob);
}
}
}
return 1;
}
return 0;
}