Goto, Heal And FixCar With Timer :D

Started by Mahmoud Tornado, Sep 11, 2017, 09:15 AM

Previous topic - Next topic

umar4911

RT Member | Asian City Scripter | CTB Contributor | VKs Contributor | European City Contributor | EAD Scripter

NicusorN5

Stop using the MS Notepad for scripting. Use PawnoX, Notepad++ or VS .



umar4911

RT Member | Asian City Scripter | CTB Contributor | VKs Contributor | European City Contributor | EAD Scripter


umar4911

RT Member | Asian City Scripter | CTB Contributor | VKs Contributor | European City Contributor | EAD Scripter


nippon

#24

=RK=MarineForce

put this for best pickup.RespawnTime = 1000;
 player.IsFrozen = true;

Milos

This goto function can freeze the player "forever".
if (player && plr)If plr leaves the server while the player is teleporting, it may freeze you as there is no other condition that only involves plr.
I think this would be a best alternative (also some adjustments to the goto function):
function goto(playerid, plrid) {
local player = FindPlayer(playerid), plr = FindPlayer(plrid);
if (player) {
if (plr) {
player.IsFrozen = false;
player.Pos = plr.Pos;
Message( "[#25e805]Information: [#f2f2f2]" + player + " has teleported to " + plr + "." );
}
else {
player.IsFrozen = false;
MessagePlayer("Error, plr has left!", player);
}
}
}