wo füge ich das in ein gm rein in einen normalen gf script unter was
forward AtDrivein(playerid);
forward Drivein(playerid);
if(strcmp(cmd, "/Drivein", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(AtDrivein(playerid))
{
SendClientMessage(playerid, COLOR_GREEN," Willkommen im Drivein ");
SendClientMessage(playerid, COLOR_WHITE," Ihr Essen wird zubereitet...");
SendClientMessage(playerid, COLOR_WHITE,"Bitte haben Sie ein wenig Geduld.");
SetTimerEx("Drivein",7000,0,"i",playerid);
//SetPlayerVirtualWorld(playerid,playerid);
TogglePlayerControllable(playerid, 0);
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "Du bist an keinem Drivein !");
return 1;
}
}
return 1;
}
stock AtDrivein(playerid)
{ // Burger Shot Nord
if (PlayerToPoint(2.0, playerid, 1215.4734,-903.7863,42.9185))
{
return 1;
}
return 0;
}
public Drivein(playerid)
{
SetPlayerHealth(playerid,100.0);
SendClientMessage(playerid, COLOR_YELLOW,"Ihr Essen ist fertig, Guten Appetit.");
TogglePlayerControllable(playerid, 1);
//SetPlayerPos(playerid, 1215.4734,-903.7863,42.9185);
}