weapon


if(_activated[_weapon]) // weapon slot activated
{
for(new slot = 0;slot < 13;slot++)
{
new w,a;
GetPlayerWeaponData(playerid,slot,w,a);
if((_weapons[playerid][slot] != w) && (w != 0)) // the weapon he has and the weapon he was given are differnt
{
if(!_isplayerin(playerid)) //
{
if(_player[playerid][_suspected]==1) // he is already suspected
{
new file[30];
new name[23];
new string[256];
GetPlayerName(playerid,name,23);
format(file,30,"%s%s.txt",BLOCKED_PATH,name);
new File:hand = fopen(file,io_append);
new wname[25];
GetWeaponName(w,wname,25);
format(string,256,"Case II: Weapon( %s )\r\n",wname);
fwrite(hand,string);
fclose(hand);
_player[playerid][_suspected] = 2;
_player[playerid][_case2] = 4;
_block(name);
}
else // he is suspected for the first time
{
new file[30];
new name[23];
new string[256];
GetPlayerName(playerid,name,23);
format(file,30,"%s%s.txt",BLOCKED_PATH,name);
if(!fexist(file))fclose(fopen(file,io_write));
new File:hand = fopen(file,io_append);
format(string,256,"Name: %s\r\n",name);
fwrite(hand,string);
new ip[15];
GetPlayerIp(playerid,ip,15);
format(string,256,"Ip: %s\r\n",ip);
fwrite(hand,string);
new month,day,hour,minute,x;
getdate(x,month,day);
gettime(hour,minute,x);
format(string,256,"Date: %d:%d\r\n",month,day);
fwrite(hand,string);
format(string,256,"Time: %d:%d\r\n",hour,minute);
fwrite(hand,string);
new wname[25];
GetWeaponName(w,wname,25);
format(string,256,"Case I: Weapon( %s )\r\n",wname);
fwrite(hand,string);
fclose(hand);
_player[playerid][_suspected] = 1;
_player[playerid][_case1] = 4;
}
}
_log(playerid,4,w);
}

}
}

Wyszukiwarka

Podobne podstrony:
Frederik Pohl The Weapon
DoD Joint Services Weapon Safety Review Process
Martial Arts Ninjutsu Weapons And Techniques
Dawning Star Terraformer 03 Daxion Arms Weapons
weaponinfo
Operation And Function Light Anti Armor Weapons M72 And M136
Banks, Iain Use of Weapons
Silent Weapon
Fudge Traveller Weapons in Fudge
Weapons of the Gods Secrets of the Qin Warriors
Lista broni SJB Weapon Pack
weapon shotgun
17 June 2004 An Unusual Weapon Against the Caro Kann (Part 2)
How to draw manga Weapons

więcej podobnych podstron