Abend der Timer führt irgendwie nicht aus.
Code
if(strcmp(cmdtext,"/pizza", true) == 0)
{
if(PlayerInfo[playerid][pJob] == 11)
{
if(PizzaDuty[playerid] == 1)
{
if(IsPlayerInRangeOfPoint(playerid,3.0,379.8357,-116.4166,1001.4922))
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_CARRY);
SetPlayerAttachedObject(playerid,1,1582,1, 0.027000, 0.534999, -0.034000, 177.600036, -92.599975, -0.399998, 1.000000, 1.000000, 1.000000);
TogglePlayerControllable(playerid, 0);
GameTextForPlayer(playerid, "~g~Bitte Warten ...", 2000, 3);
SetTimer("Pizzageben2",1000,0);
return 1;
}
}
else { SendClientMessage(playerid,COLOR_ERRORTEXT,"Du musst OnDuty sein"); }
} else { SendClientMessage(playerid,COLOR_ERRORTEXT,"Du bist kein Pizzabote"); }
return 1;
}
Alles anzeigen