28.03.2015, 12:54
Well, there's nothing wrong with my code. You must have changed something.
EDIT:
EDIT:
pawn Код:
CMD:pick(playerid, params[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(!IsPlayerConnected(i)) continue;
if(IsValidDynamicObject(Gundrop[i][GunObject]))
{
if(IsPlayerInRangeOfPoint(i, 2.0, Gundrop[i][Gunx], Gundrop[i][Guny], Gundrop[i][Gunz]))
{
DestroyDynamicObject(Gundrop[i][GunObject]);
DestroyDynamic3DTextLabel(Gundroplabel[i][GunLabel]);
}
}
else if(IsValidDynamicObject(Gundrop2[i][GunObject1]))
{
if(IsPlayerInRangeOfPoint(i, 2.0, Gundrop2[i][Gun1x], Gundrop2[i][Gun1y], Gundrop2[i][Gun1z]))
{
DestroyDynamicObject(Gundrop2[i][GunObject1]);
DestroyDynamic3DTextLabel(Gundroplabel2[i][GunLabel1]);
}
}
}
return 1;
}