Morgen Leute,
ich hab da ein Problem mit meinem Minijobsystem.
Äh wenn ich inGame /buydrug eingeben kommt einfach nix.
Und wenn ich /deliver mache steht Server: Unknow Command
Hier der Code:
//------------------------------------------------------------------------------
if(!strcmp(cmdtext, "/druginfo"))
{
SetPlayerCheckpoint(playerid, Checkpoint1, 3.0);
return 1;
}
// -----------------------------------------
if(!strcmp(cmdtext, "/buydrug"))
{
if(!IsPlayerInRangeOfPoint(playerid,5.0,-1890.8228,-1698.6608,21.7500))
{
drugjob = 1;
SendClientMessage(playerid, COLOR_GREEN, "Sucsessfull buyed Drugs");
DisablePlayerCheckpoint(playerid);
return 1;
}
//---------------------------------------
if(!strcmp(cmdtext, "/deliver"))
{
if(!IsPlayerInRangeOfPoint(playerid,2.0,-2435.5283,515.3615,30.3625)||IsPlayerInRangeOfPoint(playerid,2.0,-2154.9507,641.5555,52.3672)||IsPlayerInRangeOfPoint(playerid,2.0,-2630.4180,1401.1976,7.0994)||IsPlayerInRangeOfPoint(playerid,2.0,-1875.6005,-215.2511,18.4420)||IsPlayerInRangeOfPoint(playerid,2.0,-2136.9563,-254.3776,35.3203)||IsPlayerInRangeOfPoint(playerid,2.0,-2726.6484,-319.4173,7.1875 ))
{
GameTextForPlayer(playerid, "~g~You Completed the job, well done! +1100$", 3000, 3);
return 1;
}
GivePlayerMoney(playerid, 1100);
drugjob = 0;
}
return 1;
}
return 0;
}
Danke im Vorhinein für die Antworten