Se der "Warnings" ao complicar, coloca este:
Код:
public OnPlayerUpdate(playerid)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(WantedPoints[i] >= 1)
{
new string[128];
SetPlayerWantedLevel(i, WantedPoints[i]);
format(string, sizeof(string), "**PROCURADO [%d]**",WantedPoints[i]);
SetPlayerChatBubble(i, string, COLOR_RED, 150.0, 999999999999);
}
}
if(roubando[playerid] == 1)
{
ApplyAnimation(playerid, "BOMBER","BOM_Plant_In",4.0,0,0,0,0,0);
SetPlayerAttachedObject(playerid, 4, 1550, 1, 0.024558, -0.279748, -0.060589, 6.105677, 137.291320, 147.132202, 1.019888, 1.000000, 1.000000 );
}
if(PlayerInfo[playerid][pAdmin] >= 1344)
{
admhide[playerid] = 1;
}
if (GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
{
new Float:vec[3];
GetPlayerCameraFrontVector(playerid, vec[0], vec[1], vec[2]);
new bool:possible_crasher = false;
for (new i = 0; !possible_crasher && i < sizeof(vec); i++)
if (floatabs(vec[i]) > 10.0)
possible_crasher = true;
if (possible_crasher)
return 0; //do not send fake data, prevents crash
}
return 1;
}