public OnPlayerPickUpPickup(playerid, pickupid)
{
for(new i = 0;i<_cache_weps;i++)
{
if(pickupid == WeapData[i][WepPickupID])
{
if(pInfo[playerid][gTeam] == WeapData[i][WepFrakID])
{
GivePlayerWeapon(playerid,WeapData[i][WepaID],5000);
printf("%s - Ja",WeapData[i][WepFrakID]);
}else{
SendClientMessage(playerid,COLOR_RED,"Du bist kein Mitglied!");
}
}
break;
printf("[%i] - [%i]",i,_cache_weps);
}
return 1;
}
Doch ausgeben tut er nichts wenn ich ins Pickup (WeapData[_cache_weps][WepPickupID] = CreateDynamicPickup(1239,2,ppX,ppY,ppZ);) laufe.