forward stucktimer(playerid);
if(strcmp(cmd, "/stuck", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new Float:slx, Float:sly, Float:slz;
GetPlayerPos(playerid, slx, sly, slz);
SetPlayerPos(playerid, slx, sly, slz+2);
SetTimerEx("stucktimer", 30000, 0, "i", playerid);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
public stucktimer(playerid)
{
//weiterer Code!
}