28.08.2015, 04:20
So I would like someone help me
so there is KEY_NO
I would like player need to press C + left alt to do this action
so there is KEY_NO
I would like player need to press C + left alt to do this action
pawn Код:
else if(newkeys == KEY_NO){//LV
if(IsPlayerInAnyVehicle(playerid))return 1;
if(SpielerInfo[playerid][pKeySpam] == 1)return KillTimer(SpielerInfo[playerid][pKeySpammerTimer]),SpielerInfo[playerid][pKeySpammerTimer] = SetTimerEx("PlayerKeySpam",1000,0,"i",playerid),SendClientMessage(playerid,-1,"{DD0000}<!> {FFFFFF}Please wait before you use this key Again !");
new i=0,b=sizeof(SpawnItemLV);
while(i<b){
if(IsPlayerInRangeOfPoint(playerid,1.0,SpawnItemLV[i][PosX],SpawnItemLV[i][PosY],SpawnItemLV[i][PosZ])){
if(SpawnItemLV[i][ItemBenutz] != 1){
new string1[40],string2[28];
format(string1,sizeof(string1),"{00D40A}GEAR %s",SpawnItemLV[i][ItemName]);
format(string2,sizeof(string2),"%s",SpawnItemLV[i][ItemName]);
SpielerInfo[playerid][LootPosX] = SpawnItemLV[i][PosX];
SpielerInfo[playerid][LootPosY] = SpawnItemLV[i][PosY];
SpielerInfo[playerid][LootPosZ] = SpawnItemLV[i][PosZ];
SpielerInfo[playerid][LootItem] = SpawnItemLV[i][ItemType];
SpielerInfo[playerid][LootID] = i;
SpielerInfo[playerid][LootLoc] = 1;
ShowDIALOG_ID_SHOWITEM,DIALOG_STYLE_LIST,string1,string2,"Take","Cancel");
break;
}
}
i++;
}
if(SpielerInfo[playerid][pKeySpam] == 0)SpielerInfo[playerid][pKeySpammerTimer] = SetTimerEx("PlayerKeySpam",1000,0,"i",playerid),SpielerInfo[playerid][pKeySpam]=1;
return 1;
}