huhu
habe mir mal so ein equippoint zusammen gebastelt. Der soll eigendlich nur für Cops sein [ID:1] und nur an dem einem Bestimmten Punkt gehe dürfen.
aber es kann jede Fraktion machen, und überall. weiss nicht wo das Problem is . Kann einer Helfen?
if (strcmp(cmdtext, "/ausrüstung", true) == 0){ //ausrüstung
if(PlayerInfo[playerid][pLeader]== 1|| PlayerInfo[playerid][pMember]==1)
if(PlayerToPoint(2.0, playerid,222.8002,182.6790,1003.0313))
SendClientMessage(playerid, COLOR_YELLOW, "|____Ausrüstung____|");
SendClientMessage(playerid, COLOR_WHITE, "Benutzen: /ausrüstung [1-5]");
SendClientMessage(playerid, COLOR_WHITE, "1 : Leben + Schutzweste");
SendClientMessage(playerid, COLOR_WHITE, "2 : Deagle,Spray,Schlagstock");
SendClientMessage(playerid, COLOR_WHITE, "3 : MP5,Shotgun");
SendClientMessage(playerid, COLOR_WHITE, "4 : M4,Blendgranaten");
SendClientMessage(playerid, COLOR_WHITE, "5 : Sniper,9mm");
return 1;
}
//--------------------------------------------------
if (strcmp(cmdtext, "/ausrüstung 1", true) == 0){ //1
if(PlayerInfo[playerid][pLeader]== 1|| PlayerInfo[playerid][pMember]==1)
if(PlayerToPoint(2.0, playerid,222.8002,182.6790,1003.0313))
SetPlayerArmour(playerid,100);
SetPlayerHealth(playerid,100);
return 1;
}
if (strcmp(cmdtext, "/ausrüstung 2", true) == 0){ //2
if(PlayerInfo[playerid][pLeader]== 1|| PlayerInfo[playerid][pMember]==1)
if(PlayerToPoint(2.0, playerid,222.8002,182.6790,1003.0313))
GivePlayerWeapon(playerid,24,60);
GivePlayerWeapon(playerid,41,1000);
GivePlayerWeapon(playerid,3,1);
return 1;
}
if (strcmp(cmdtext, "/ausrüstung 3", true) == 0){ //3
if(PlayerInfo[playerid][pLeader]== 1|| PlayerInfo[playerid][pMember]==1)
if(PlayerToPoint(2.0, playerid,222.8002,182.6790,1003.0313))
GivePlayerWeapon(playerid,25,50);
GivePlayerWeapon(playerid,29,500);
return 1;
}
if (strcmp(cmdtext, "/ausrüstung 4", true) == 0){ //4
if(PlayerInfo[playerid][pLeader]== 1|| PlayerInfo[playerid][pMember]==1)
if(PlayerToPoint(2.0, playerid,222.8002,182.6790,1003.0313))
GivePlayerWeapon(playerid,31,500);
GivePlayerWeapon(playerid,17,10);
return 1;
}
if (strcmp(cmdtext, "/ausrüstung 5", true) == 0){ //5
if(PlayerInfo[playerid][pLeader]== 1|| PlayerInfo[playerid][pMember]==1)
if(PlayerToPoint(2.0, playerid,222.8002,182.6790,1003.0313))
GivePlayerWeapon(playerid,34,20);
GivePlayerWeapon(playerid,22,100);
return 1;
}