Hey, habe nen Prison-Timer der zwar funktioniert jedoch nicht gestoppt wird.
Hier mein Code:
public prison(playerid)
{
prisontimer[playerid] = SetTimerEx("returnprison",1000,true,"i",playerid);
SetPlayerSkin(playerid,206);
ResetPlayerWeapons(playerid);
SetPlayerPos(playerid,141.8950,1875.5736,17.8434);
SetPlayerFacingAngle(playerid,268.7193);
SetCameraBehindPlayer(playerid);
return 1;
}
public returnprison(playerid)
{
PlayerInfo[playerid][pPrison]--;
if(PlayerInfo[playerid][pPrison] == 0)
{
KillTimer(prisontimer[playerid]);
GameTextForPlayer(playerid,"~g~FREIHEIT",1500,1);
SetPlayerSkin(playerid,PlayerInfo[playerid][pModel]);
SetPlayerPos(playerid,135.4223,1946.9067,19.3619);
SetPlayerFacingAngle(playerid,359.9665);
SetCameraBehindPlayer(playerid);
return 1;
}
return 1;
}