22.08.2015, 11:20
if(strcmp(cmdtext, "/briefcase", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pBCase] == 1)
{
if(BCase[playerid] == 0)
{
SetPlayerHoldingObject(playerid, 1210, 6,0.3,0.1,0,0,-90,0); // BriefCase
SendClientMessage(playerid, COLOR_WHITE, " You have pulled out your briefcase. ");
BCase[playerid] = 1;
return 1;
}
else if(BCase[playerid] == 1)
{
StopPlayerHoldingObject(playerid);
SendClientMessage(playerid, COLOR_WHITE, " You have put away your briefcase. ");
BCase[playerid] = 0;
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " You don't own a briefcase !");
return 1;
}
return 1;
}
return 1;
}
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pBCase] == 1)
{
if(BCase[playerid] == 0)
{
SetPlayerHoldingObject(playerid, 1210, 6,0.3,0.1,0,0,-90,0); // BriefCase
SendClientMessage(playerid, COLOR_WHITE, " You have pulled out your briefcase. ");
BCase[playerid] = 1;
return 1;
}
else if(BCase[playerid] == 1)
{
StopPlayerHoldingObject(playerid);
SendClientMessage(playerid, COLOR_WHITE, " You have put away your briefcase. ");
BCase[playerid] = 0;
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " You don't own a briefcase !");
return 1;
}
return 1;
}
return 1;
}