Du hast nicht ernsthaft einen Timer erstellt, der 3x pro Millisekunde aufgerufen wird, oder?!? Das solltest du aber dringendst ändern.
Und dann mach es mal so, und poste dann was im server_log steht.
Und bitte nimm nicht diese doofe Seite, zig tausende Werbungen. Nimm http://www.tinypic.com, oder http://www.pastebin.com für Text.
public ptimer(playerid) {
if(!IsPlayerConnectedEx(playerid)) return 1;
new aimtplayer = GetPlayerTargetPlayer(playerid), msg[109];
if(aimtplayer != INVALID_PLAYER_ID) {
if(!IsPlayerNPC(aimtplayer)) return 1;
if(IsPlayerInRangeOfPoint(playerid,4.0,1373.8241,-1758.2440,13.5481)) Bankrob(playerid);
if(!strcmp(BotInfo[aimtplayer][botname],"Bankdame2",false)) {
if(!BotInfo[aimtplayer][inanimation]) ApplyAnimation(aimtplayer,"ped","handsup",4.1,0,1,1,1,0,1), BotInfo[aimtplayer][inanimation] = true, SetTimerEx("ClearAnimation",1000*60,false,"i",aimtplayer);
if(PlayerInfo[playerid][bankrob] == true) PlayerInfo[playerid][bankrobsecs]++;
}
if(!strcmp(BotInfo[aimtplayer][botname],"Bankdame1",false) || !strcmp(BotInfo[aimtplayer][botname],"Bankdame2_Ani",false)) if(!BotInfo[aimtplayer][inanimation] && IsPlayerInRangeOfPoint(playerid,5.0,1375.9094,-1759.5554,13.5504)) ApplyAnimation(aimtplayer,"ped","handsup",4.1,0,1,1,1,0,1), BotInfo[aimtplayer][inanimation] = true, SetTimerEx("ClearAnimation",1000*60,false,"i",aimtplayer);
} else if(aimtplayer == INVALID_PLAYER_ID) {
if(PlayerInfo[playerid][bankrob]) PlayerInfo[playerid][btimer]++;
if(PlayerInfo[playerid][bankrob] && PlayerInfo[playerid][btimer] > 10) GivePlayerMoney(playerid,PlayerInfo[playerid][bankrobsecs]*10), format(msg,sizeof(msg),"Du hast $%i erbeutet!",PlayerInfo[playerid][bankrobsecs]*10), SendClientMessage(playerid,white,msg), PlayerInfo[playerid][bankrob] = false, PlayerInfo[playerid][btimer] = 0, PlayerInfo[playerid][bankrobsecs] = 0, SendCopMsg(lightblue,"[SECURE-SYSTEM]: Der manuelle Alarmschalter in der Bank wurde betätigt!");
}
new Float: armourx;
GetPlayerArmour(playerid,armourx);
if(armourx == 0) SetPlayerArmourEx(playerid,0);
new t = GetTickCount();
if(p_AFK[playerid] == 0 && p_LastUpdate[playerid] < t-1000) p_AFK[playerid] = 1;
printf("playerid: %d -- pLU: %i || Time: %i, reachedT: %i || State: %d || p_AFK: %d", playerid, p_LastUpdate[playerid], t, t-1000, IsPlayerOnDesktop(playerid), p_AFK[playerid]);
UpdateNametag(playerid);
return 1;
}
public OnPlayerUpdate(playerid)
{
printf("Called playerid %d @ %d", playerid, GetTickCount());
p_LastUpdate[playerid] = GetTickCount();
p_AFK[playerid] = 0;
return 1;
}
Was kommt im Server log?
Markiere bitte die Stelle, an der du auf den Desktop gegangen bist.