forward checkparea(playerid);
forward closegate();
forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
Das bei OnPlayerSpawn ganz unten einfügen
SetTimer("checkparea", 1, 1);
if (strcmp(cmdtext, "/Mautauf", true) == 0){
MoveObject(maut,-891.263428,-1107.283569,99.225594,4);
GivePlayerMoney(playerid, -250);
if(PlayerInfo[playerid][pSFLic] == 0)
GivePlayerMoney(playerid, -500);
return 1;
}
{
SetTimer("closegate", 5000, 0);
return 1
}
Das irgenwo ins Script
public closegate()
{
MoveObject(objectname, Pos1, Pos2, Pos3, 2.5);
return 1;
}
ICh habe mir da was zusammengebastelt, weiß nit ob das klappt