31.10.2010, 15:39
pawn Код:
if(!strcmp(cmdtext, "/smuggleweapon", true))
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " You need to login first !");
return 1;
}
if (HouseEntered[playerid] = 0)
{
SendClientMessage(playerid, COLOR_GREY, " You can only use /smuggleweapon while you are in your cell !");
return 1;
}
if (HouseEntered[playerid] = 1)
{
GivePlayerWeapon(playerid,4,1);
ApplyAnimation(playerid,"DEALER","shop_pay",4.1,0,0,0,0,0);
weapontimer = SetTimer("WeaponTimer", 60000, 1);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You need to /smoke to use this animation ! ");
return 1;
}
}
return 1;
}