Hallo, liebe Breadfish Community, mal wieder eine Frage.
1. Wie bekomme ich in den Befehl
if(strcmp(cmd,"/gequip",true) == 0)
{
if(IsAGang(playerid))
{
GivePlayerWeapon(playerid, 24, 250);
GivePlayerWeapon(playerid, 25,500);
GivePlayerWeapon(playerid, 29,500);
GivePlayerMoney(playerid,-2000);
SendClientMessage(playerid, COLOR_GRAD1, "Du hast Waffen erhalten und dir wurden 2000$ abgezogen.");
}
else SendClientMessage(playerid,COLOR_RED,"Du bist kein Gangmitglied oder befindest dich net am richtigen Ort.");
return 1;
}
Das hier:
if(IsPlayerInRangeOfPoint(playerid,2.0,1272.9819,-800.3746,1089.9298) || IsPlayerInRangeOfPoint(playerid,2.0,1958.1266,986.5524,992.4688) || IsPlayerInRangeOfPoint(playerid,2.0,-2164.0723,641.3340,1057.5933) ||IsPlayerInRangeOfPoint(playerid,2.0,-2422.5806,342.4432,36.9974) || IsPlayerInRangeOfPoint(playerid,2.0,315.9215,1118.7590,1083.8828) ||IsPlayerInRangeOfPoint(playerid,2.0,1123.8663,-1.4310,1000.6797) || IsPlayerInRangeOfPoint(playerid,2.0,503.0312,-75.3989,998.7651) ||IsPlayerInRangeOfPoint(playerid,2.0,1220.4254,4.7534,1000.9219) || IsPlayerInRangeOfPoint(playerid,2.0,-222.4017,1410.3318,27.7734) ||IsPlayerInRangeOfPoint(playerid,2.0,236.6648,1074.6542,1084.2344) || IsPlayerInRangeOfPoint(playerid,2.0,2805.5818,-1171.5667,1025.5703) ||IsPlayerInRangeOfPoint(playerid,2.0,2553.2783,-1290.0443,1060.9844) || IsPlayerInRangeOfPoint(playerid,2.0,1733.8542,-1659.5723,20.2432))
rein?
2.
if (strcmp(cmd, "/check", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] >= 3)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "Benutzung: /check [Spieler ID]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
Stats(playerid,giveplayerid);
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Der Spieler wurde nicht gefunden!");
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Du bist nicht befugt!");
}
}
return 1;
}Was ist an diesem Befehl falsch da kommt SERVER: Unknown Command
hoffe ihr könnt mir helfen