22.04.2017, 08:12
[debug] #2 0014a33c in public Store_OnPlayerDisconnect (12, 0)
PHP код:
public OnPlayerDisconnect(playerid, reason)
{
if(PFlag(Robbing))
{
new i = pData[playerid][RobberyStore];
RemoveSafeMoney(Store[i][StoreSafe]);
CloseSafe(Store[i][StoreSafe]);
Store[i][StoreStatus] = STORE_HAS_ROBBED;
StopRobbery(playerid);
switch(random(4))
{
case 0:
ApplyActorAnimation(Store[i][StoreActor], "PED", "roadcross", 4.1, 1, 1, 1, 1, 0);
case 1:
ApplyActorAnimation(Store[i][StoreActor], "PED", "roadcross_female", 4.1, 1, 1, 1, 1, 0);
case 2:
ApplyActorAnimation(Store[i][StoreActor], "PED","roadcross_gang", 4.1, 1, 1, 1, 1, 0);
case 3:
ApplyActorAnimation(Store[i][StoreActor], "PED","roadcross_old", 4.1, 1, 1, 1, 1, 0);
}
}
#if defined Store_OnPlayerDisconnect
return Store_OnPlayerDisconnect(playerid, reason);
#else
return 1;
#endif
}
#if defined _ALS_OnPlayerDisconnect
#undef OnPlayerDisconnect
#else
#define _ALS_OnPlayerDisconnect
#endif
#define OnPlayerDisconnect Store_OnPlayerDisconnect
#if defined Store_OnPlayerDisconnect
forward Store_OnPlayerDisconnect(playerid, reason);
#endif