HeyHoo,
Ich hab mir grade nen /duty-Befehl gebastelt.
Nur leider spuckt er mir immer "SERVER:Unknown command." aus....
hier einmal der Command:
if(isPlayerInFrakt(playerid,1))
{
if(IsPlayerInRangeOfPoint(playerid,2,237.1750,110.2013,1003.2188))
{
if(strcmp(cmdtext,"/duty",true)==0)
{
SetPlayerColor(playerid,SFPDBlau);
GivePlayerWeapon(playerid,3,1);
GivePlayerWeapon(playerid,24,70);
GivePlayerWeapon(playerid,29,300);
SetPlayerHealth(playerid,100);
SetPlayerArmour(playerid,100);
SetPVarInt(playerid,"OnDuty",1);
}
}
}
if(isPlayerInFrakt(playerid,1))
{
if(IsPlayerInRangeOfPoint(playerid,2,237.1750,110.2013,1003.2188))
{
if(strcmp(cmdtext,"/duty",true)==0)
{
if(GetPVarInt(playerid,"OnDuty")==1)
{
SetPlayerColor(playerid,Weiss);
ResetPlayerWeapons(playerid);
SetPlayerArmour(playerid,0);
SetPlayerHealth(playerid,100);
}
}
}
}
MfG
Deagle