#define FILTERSCRIPT
#include <a_samp>
#include <ZCMD>
#include <sscanf2>
#if defined FILTERSCRIPT
#endif
new lastskin;
new duty = 0;
new wantedlevel;
CMD:duty(playerid , params[])
{
if (IsPlayerAdmin(playerid))
{
lastskin = GetPlayerSkin(playerid);
SetPlayerArmour(playerid, 100);
SetPlayerSkin(playerid, 280);
GivePlayerWeapon(playerid , 24 , 500);
SendClientMessage(playerid , -1 , "[POLICE]Esti la datorie!");
SetPlayerColor(playerid , 0x0335ffFF);
duty = 1;
return 1;
}
else
{
SendClientMessage(playerid , -1 , "Nu ai functia de politist.");
}
return 1;
}
CMD:offduty(playerid , params[])
{
SendClientMessage(playerid , -1 , "[POLICE]Nu mai esti la datorie!");
SetPlayerSkin(playerid, lastskin);
SetPlayerArmour(playerid, 0);
ResetPlayerWeapons(playerid);
SetPlayerColor(playerid , -1 );
duty = 0;
return 1;
}
CMD:wanted(playerid , params[])
{
if (IsPlayerAdmin(playerid))
{
if (duty == 1)
{
new targetid;
if(sscanf(params,"d", targetid)) return SendClientMessage(playerid,-1 ,"USAGE: /wanted [id]");
else if (!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,"Acel player nu este online");
wantedlevel = GetPlayerWantedLevel(targetid);
SendClientMessage(playerid , -1 , wantedlevel);
return 1;
}
else
{
SendClientMessage(playerid , -1 , "[POLICE]Nu esti la datorie!");
}//////
}//////////////
return 1;
}////////
#include <a_samp>
#include <ZCMD>
#include <sscanf2>
#if defined FILTERSCRIPT
#endif
new lastskin;
new duty = 0;
new wantedlevel;
CMD:duty(playerid , params[])
{
if (IsPlayerAdmin(playerid))
{
lastskin = GetPlayerSkin(playerid);
SetPlayerArmour(playerid, 100);
SetPlayerSkin(playerid, 280);
GivePlayerWeapon(playerid , 24 , 500);
SendClientMessage(playerid , -1 , "[POLICE]Esti la datorie!");
SetPlayerColor(playerid , 0x0335ffFF);
duty = 1;
return 1;
}
else
{
SendClientMessage(playerid , -1 , "Nu ai functia de politist.");
}
return 1;
}
CMD:offduty(playerid , params[])
{
SendClientMessage(playerid , -1 , "[POLICE]Nu mai esti la datorie!");
SetPlayerSkin(playerid, lastskin);
SetPlayerArmour(playerid, 0);
ResetPlayerWeapons(playerid);
SetPlayerColor(playerid , -1 );
duty = 0;
return 1;
}
CMD:wanted(playerid , params[])
{
if (IsPlayerAdmin(playerid))
{
if (duty == 1)
{
new targetid;
if(sscanf(params,"d", targetid)) return SendClientMessage(playerid,-1 ,"USAGE: /wanted [id]");
else if (!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,"Acel player nu este online");
wantedlevel = GetPlayerWantedLevel(targetid);
SendClientMessage(playerid , -1 , wantedlevel);
return 1;
}
else
{
SendClientMessage(playerid , -1 , "[POLICE]Nu esti la datorie!");
}//////
}//////////////
return 1;
}////////